Struct blaze_rs::event::ProfilingInfo
source · #[non_exhaustive]pub struct ProfilingInfo<T> {
pub queued: T,
pub submit: T,
pub start: T,
pub end: T,
pub complete: T,
}
Expand description
Struct containing the various profiling information of an event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.queued: T
Value that describes the current device time counter in nanoseconds when the command identified by event is enqueued in a command-queue by the host.
submit: T
Value that describes the current device time counter in nanoseconds when the command identified by event that has been enqueued is submitted by the host to the device associated with the command-queue.
start: T
Value that describes the current device time counter in nanoseconds when the command identified by event starts execution on the device.
end: T
Value that describes the current device time counter in nanoseconds when the command identified by event has finished execution on the device.
complete: T
cl2
only.Value that describes the current device time counter in nanoseconds when the command identified by event and any child commands enqueued by this command on the device have finished execution.
Implementations§
source§impl ProfilingInfo<u64>
impl ProfilingInfo<u64>
pub fn new(event: &RawEvent) -> Result<Self>
sourcepub fn duration(&self) -> Duration
pub fn duration(&self) -> Duration
Time elapsed between ProfilingInfo::start
and ProfilingInfo::end
source§impl ProfilingInfo<SystemTime>
impl ProfilingInfo<SystemTime>
pub fn new(event: &RawEvent) -> Result<Self>
sourcepub fn duration(&self) -> Duration
pub fn duration(&self) -> Duration
Time elapsed between ProfilingInfo::start
and ProfilingInfo::end
Trait Implementations§
source§impl<T: Clone> Clone for ProfilingInfo<T>
impl<T: Clone> Clone for ProfilingInfo<T>
source§fn clone(&self) -> ProfilingInfo<T>
fn clone(&self) -> ProfilingInfo<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more