- class paddle.profiler. ProfilerState ( value )
ProfilerState is used to present the state of Profiler .
The meaning of each ProfilerState is as following
ProfilerState.CLOSED : The profiler is closed, and no profiling data will be recorded.
ProfilerState.READY : The profiler is open, but the data will not be recorded. This state is used for reducing overhead influence when profiler starts.
ProfilerState.RECORD : The profiler is open, and the data will be recorded.
ProfilerState.RECORD_AND_RETURN : The profiler is open, and this state stands for the last batch of “RECORD” state in current profiling period. The collected data will be returned in this state.