pub struct LaunchLog { /* private fields */ }Expand description
A complete record of a single kernel launch.
Captures the kernel name, launch configuration (grid, block, shared
memory), serialized arguments, and a timestamp. Named LaunchLog
to avoid conflicting with LaunchRecord in
the graph_launch module.
Implementations§
Source§impl LaunchLog
impl LaunchLog
Sourcepub fn new(
kernel_name: String,
grid: Dim3,
block: Dim3,
shared_mem: u32,
args: Vec<SerializedArg>,
) -> Self
pub fn new( kernel_name: String, grid: Dim3, block: Dim3, shared_mem: u32, args: Vec<SerializedArg>, ) -> Self
Creates a new LaunchLog entry.
The timestamp is set to the current instant.
Sourcepub fn from_params(
kernel_name: String,
params: &LaunchParams,
args: Vec<SerializedArg>,
) -> Self
pub fn from_params( kernel_name: String, params: &LaunchParams, args: Vec<SerializedArg>, ) -> Self
Creates a new LaunchLog from a kernel name, LaunchParams, and args.
Sourcepub fn kernel_name(&self) -> &str
pub fn kernel_name(&self) -> &str
Returns the kernel function name.
Returns the shared memory size in bytes.
Sourcepub fn args(&self) -> &[SerializedArg]
pub fn args(&self) -> &[SerializedArg]
Returns the serialized arguments.
Sourcepub fn total_threads(&self) -> u64
pub fn total_threads(&self) -> u64
Returns the total number of threads in this launch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LaunchLog
impl RefUnwindSafe for LaunchLog
impl Send for LaunchLog
impl Sync for LaunchLog
impl Unpin for LaunchLog
impl UnsafeUnpin for LaunchLog
impl UnwindSafe for LaunchLog
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