Time Profiling

How to Configure

Compile libyt with -DSUPPORT_TIMER=ON.

Chrome Tracing – Visualizing the Profile

  1. Since each process dumps its profile libytTimeProfile_MPI*.json separately, we run the following to concatenate all of them:

    cat `ls libytTimeProfile_MPI*` >> TimeProfile.json
    
  2. Add ]} at the end of TimeProfile.json.

    This is optional, and we only need to add ]} if Perfetto doesn’t recognize the file. (It used to recognize it.)

  3. Open Google Chrome and enter chrome://tracing, or go to Perfetto.

  4. Load the time profile TimeProfile.json.