id (int) – Unique identifier for this event.
node_id (int) – Node identifier for distributed profiling (-1 if not applicable).
name (str) – Name of the profiled function/operator.
overload_name (str) – Overload name for the operator (requires _ExperimentalConfig(capture_overload_names=True) set).
trace_name (str) – Same as name, just changes ProfilerStep* to ProfilerStep#
time_range (Interval) – Time interval containing start and end timestamps in microseconds.
thread (int) – Thread ID where the operation started.
fwd_thread (int) – Thread ID of the corresponding forward operation.
kernels (List[Kernel]) – List of device kernels launched by this operation.
count (int) – Number of times this event was called (usually 1).
cpu_children (List[FunctionEvent]) – Direct CPU child operations.
cpu_parent (FunctionEvent) – Direct CPU parent operation.
input_shapes (List[List[int]]) – Shapes of input tensors (requires record_shapes=True).
For plain tensor inputs, each entry is a list of dimensions (e.g. [16, 16]).
TensorList inputs are represented as an empty list []; use
structured_input_shapes to get per-element shapes for TensorList inputs.
concrete_inputs (List[Any]) – Concrete input values (requires record_shapes=true).
kwinputs (Dict[str, Any]) – Keyword arguments (requires record_shapes=true).
stack (List[str]) – Python stack trace where the operation was called (requires with_stack=true).
scope (int) – at::RecordScope identifier (0=forward, 1=backward, etc.).
use_device (str) – Device type being profiled (“cuda”, “xpu”, etc.).
cpu_memory_usage (int) – CPU memory allocated in bytes.
device_memory_usage (int) – Device memory allocated in bytes.
is_async (bool) – Whether this is an asynchronous operation.
is_remote (bool) – Whether this operation occurred on a remote node.
sequence_nr (int) – Sequence number for autograd operations.
device_type (DeviceType) – Type of device (CPU, CUDA, XPU, PrivateUse1, etc.).
device_index (int) – Index of the device (e.g., GPU 0, 1, 2).
device_resource_id (int) – Resource ID on the device (ie. stream ID).
is_legacy (bool) – Whether this is from the legacy profiler.
flops (int) – Estimated floating point operations.
is_user_annotation (bool) – Whether this is a user-annotated region.
metadata (Dict[str, Any]) – Additional metadata keyed by the field names
used in exported traces. Use
_ExperimentalConfig(expose_kineto_event_metadata=True) to expose
Kineto activity metadata. Available fields vary by activity and backend.
metadata_json (str) – Deprecated. Use event_metadata instead.
event_metadata (EventMetadata) – Additional metadata in structured format.
structured_input_shapes (List[List[int] | List[List[int]]]) – Like input_shapes
but distinguishes TensorList inputs. Plain tensor inputs are List[int];
TensorList inputs are List[List[int]] containing one shape per tensor in the list.
Matches the "Input Dims" field in the Chrome trace JSON.
structured_input_strides (List[List[int] | List[List[int]]]) – Strides of input
tensors in the same format as structured_input_shapes (requires
record_shapes=True).