torch.profiler.ProfilerEvent
export interface ProfilerEvent {
/** Name of the profiled operation */
name: string;
/** Which device the operation ran on */
activity: ProfilerActivity;
/** Start timestamp in milliseconds */
start: number;
/** End timestamp in milliseconds */
end?: number;
/** Duration of the operation in milliseconds */
duration?: number;
/** Tensor shapes involved (if record_shapes was enabled) */
shapes?: number[][];
/** Memory usage in bytes (if profile_memory was enabled) */
memory_usage?: number;
}name(string)- – Name of the profiled operation
activity(ProfilerActivity)- – Which device the operation ran on
start(number)- – Start timestamp in milliseconds
end(number)optional- – End timestamp in milliseconds
duration(number)optional- – Duration of the operation in milliseconds
shapes(number[][])optional- – Tensor shapes involved (if record_shapes was enabled)
memory_usage(number)optional- – Memory usage in bytes (if profile_memory was enabled)
A single profiling event recording operation execution. Contains timing information and optional metadata about the operation.