pub struct GraphIoProfile {
pub kernel_launches: usize,
pub sync_points: usize,
pub host_output_bytes: u64,
pub device_traffic_bytes: u64,
}Expand description
Host-visible traffic and sync points for one forward pass.
Fields§
§kernel_launches: usizeKernel / thunk dispatches (one per non-view executable node).
sync_points: usizeGPU flush + host-side thunk boundaries (Metal LogMel, host FFT fallback, …).
host_output_bytes: u64Bytes returned to the caller via graph outputs (CompiledGraph::run).
device_traffic_bytes: u64Bytes moved inside the device arena (read inputs + write outputs per node).
Implementations§
Source§impl GraphIoProfile
impl GraphIoProfile
pub fn host_readback_bytes(&self, unified_memory: bool) -> u64
Trait Implementations§
Source§impl Clone for GraphIoProfile
impl Clone for GraphIoProfile
Source§fn clone(&self) -> GraphIoProfile
fn clone(&self) -> GraphIoProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GraphIoProfile
Source§impl Debug for GraphIoProfile
impl Debug for GraphIoProfile
Source§impl Default for GraphIoProfile
impl Default for GraphIoProfile
Source§fn default() -> GraphIoProfile
fn default() -> GraphIoProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphIoProfile
impl<'de> Deserialize<'de> for GraphIoProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GraphIoProfile
Source§impl PartialEq for GraphIoProfile
impl PartialEq for GraphIoProfile
Source§fn eq(&self, other: &GraphIoProfile) -> bool
fn eq(&self, other: &GraphIoProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GraphIoProfile
impl Serialize for GraphIoProfile
impl StructuralPartialEq for GraphIoProfile
Auto Trait Implementations§
impl Freeze for GraphIoProfile
impl RefUnwindSafe for GraphIoProfile
impl Send for GraphIoProfile
impl Sync for GraphIoProfile
impl Unpin for GraphIoProfile
impl UnsafeUnpin for GraphIoProfile
impl UnwindSafe for GraphIoProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more