Application-implemented interface for profiling. More...
Public Member Functions | |
virtual void | reportLayerTime (const char *layerName, float ms)=0 |
Layer time reporting callback. More... | |
virtual | ~IProfiler () |
Application-implemented interface for profiling.
When this class is added to an execution context, the profiler will be called once per layer for each invocation of execute(). Note that enqueue() does not currently support profiling.
The profiler will only be called after execution is complete. It has a small impact on execution time.
|
inlinevirtual |
|
pure virtual |
Layer time reporting callback.
layerName | The name of the layer, set when constructing the network definition. |
ms | The time in milliseconds to execute the layer. |
Implemented in sample::Profiler, and SimpleProfiler.