Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Time Profiling

Table of contents

How to Configure?

Compile libyt with -DSUPPORT_TIMER option. (See How to Install)

Visualizing the Profile – Chrome Tracing

  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.

    :information_source: This is optional, and we only need to add ]} if Perfetto doesn’t recognize the file.

  3. Open Google Chrome and enter chrome://tracing, or go Perfetto.
  4. Load the time profile TimeProfile.json.