pygsti.tools.profile

Profiler utilities.

Module Contents

Functions

profile(filename=None, comm=MPI.COMM_WORLD)

A decorator for profiling (using cProfile) a function.

pygsti.tools.profile.profile(filename=None, comm=MPI.COMM_WORLD)

A decorator for profiling (using cProfile) a function.

Parameters
  • filename (str, optional) – Filename to dump profiler stats to.

  • comm (mpi4py.MPI.Comm, optional) – Communicator so that different processors dump to different files.