pandora.profiler
Contains functions for wrapper logs
Attributes
Classes
Main profiler class for Pandora |
|
MemProf |
Functions
|
Pandora profiling decorator |
Module Contents
- class pandora.profiler.Profiler[source]
Main profiler class for Pandora
- static enable_from_config(conf: dict)[source]
Enables the profiler if specified in the config file
- Parameters:
conf (dict) – The configuration dict
- static add_profiling_info(info: dict)[source]
Add profiling info to the profiling DataFrame.
- Parameters:
info (dict) – dictionary with profiling data keys
- static generate_summary(base_output: str)[source]
Generate Profiling summary
- Parameters:
base_output (str) – Pandora’s output directory
- static plot_trace_for_call(call_uuid, data_name)[source]
Plot memory (or any resource tracked) usage over time for a function call, with markers for its subcalls.
- Parameters:
call_uuid (str) – UUID of the parent function call
data_name (str) – The name of the data to plot (if cpu consumption were to be added for example)
- Returns:
The generated plotly figure
- Return type:
plotly.graph_objs._figure.Figure