Profile
- class mosaic.profile.profile.Profiler[source]
Bases:
object
The profiler controls profiling for the local runtime, including starting and stopping the profile, and starting new traces.
- start_trace(trace_id=None, level=1)[source]
Start a new profiling trace.
- Parameters:
trace_id (str, optional) – Optional trace_id for this trace.
level (int, optional) – Level at which the trace should start.
- property tracing
Whether or not the profiler is activated.
- class mosaic.profile.profile.GlobalProfiler[source]
Bases:
object
The global profiler keeps the different endpoints of the runtime in contact, so that local profiles can be consolidated into a single, global one.