The saved information in the .json file of the torch profiler
I have profiled my model using the torch profiler:
from torch.profiler import profile, record_function, ProfilerActivity
import torch
with profile(activities=[
    ProfilerActivity.CPU, ProfilerActivity.CUDA], record_shapes=True) as prof:
    with record_function(&quot;model_inference&quot;):
        model(input)
profiling_results.export_chrome_trace(&quot;resnet18_trace_cuda.json&quot;)

I am not familiar with the terms that are saved in the .json file.
I appreciate it if I know each of the terms:
 &quot;traceEvents&quot;: [
  {
    &quot;ph&quot;: &quot;X&quot;, &quot;cat&quot;: &quot;cpu_op&quot;, 
    &quot;name&quot;: &quot;aten::zeros&quot;, &quot;pid&quot;: 867040, &quot;tid&quot;: 867040,
    &quot;ts&quot;: 1668551166936236, &quot;dur&quot;: 23,
    &quot;args&quot;: {
      &quot;Trace name&quot;: &quot;PyTorch Profiler&quot;, &quot;Trace iteration&quot;: 0,
      &quot;External id&quot;: 376,
      &quot;Input Dims&quot;: [[], [], [], [], []], &quot;Input type&quot;: [&quot;&quot;, &quot;Scalar&quot;, &quot;&quot;, &quot;&quot;, &quot;Scalar&quot;]
    }
  },...

Thanks for the help!

You can open the json with chrome. Maybe this will help you to understand the data.
From the documentation:

The checkpoint can be later loaded and inspected under chrome://tracing URL.

