pandora2d.profiling
Contains functions for profiling pandora2d
Attributes
Classes
Expert mode config class |
|
Data class |
|
MemProf |
|
Item of a Performance Summary. |
|
Performance Summary. |
Functions
|
Get current memory of process |
|
Pandora2d profiling decorator |
|
Barh figure. |
|
Box figure. |
|
Generate graphs referencing memory management and time for each step. |
Module Contents
- pandora2d.profiling.get_current_memory() float[source]
Get current memory of process
- Returns:
memory
- class pandora2d.profiling.MemProf(pid, pipe, interval=0.1)[source]
Bases:
threading.ThreadMemProf
Profiling thread with time and memory performances in seconds and MiB
- pandora2d.profiling.mem_time_profile(name=None, interval=0.1)[source]
Pandora2d profiling decorator
- Param:
func: function to monitor
- pandora2d.profiling.generate_barh_figure(series: pandas.Series, values: Any, title: str = '') matplotlib.figure.Figure[source]
Barh figure.
- Parameters:
series – Series containing the data
values – Values for bar chart
title – Title of the chart
- Returns:
Performance graph
- pandora2d.profiling.generate_box_figure(dataframe: pandas.DataFrame, title: str = '', xlabel: str = '', ylabel: str = '') matplotlib.figure.Figure[source]
Box figure.
- Parameters:
dataframe – DataFrame containing the data
title – Title of the chart
xlabel – Label for x-axis
ylabel – Label for y-axis
- Returns:
Performance graph
- class pandora2d.profiling.PerformanceSummaryItem[source]
Bases:
TypedDictItem of a Performance Summary.
- class pandora2d.profiling.PerformanceSummary[source]
Bases:
TypedDictPerformance Summary.
- Process_time: PerformanceSummaryItem[source]
- Maximum_memory: PerformanceSummaryItem[source]
- Start_RAM: PerformanceSummaryItem[source]
- End_RAM: PerformanceSummaryItem[source]
- MAX_CPU: PerformanceSummaryItem[source]