- class lightning.pytorch.profilers.SimpleProfiler(dirpath=None, filename=None, extended=True)[source]¶
This profiler simply records the duration of actions (in seconds) and reports the mean duration of each action and the total time spent over the entire training run.
None]) – Directory path for the
filenameis present, the
TensorBoardLogger) will be used.
str]) – If present, filename where the profiler results will be saved instead of printing to stdout. The
.txtextension will be used automatically.
bool) – If
True, adds extra columns representing number of calls and percentage of total time spent on respective action.
ValueError – If you attempt to start an action which has already started, or if you attempt to stop recording an action which was never started.