Time Profiling¶
How to Configure¶
Compile libyt
with -DSUPPORT_TIMER=ON
.
Chrome Tracing – Visualizing the Profile¶
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
Add
]}
at the end ofTimeProfile.json
.
This is optional, and we only need to add]}
if Perfetto doesn’t recognize the file. (It used to recognize it.)Open Google Chrome and enter
chrome://tracing
, or go to Perfetto.Load the time profile
TimeProfile.json
.