Layer Profiler#
-
class LayerProfiler : public nvinfer1::IProfiler#
Stage-specific layer profiler.
Public Functions
-
LayerProfiler(LayerProfiler const&) = delete#
-
LayerProfiler &operator=(LayerProfiler const&) = delete#
-
~LayerProfiler() noexcept override = default#
-
void setEnabled(bool enabled) noexcept#
Enable or disable layer profiling recording.
-
bool isEnabled() const noexcept#
-
void reset() noexcept#
Reset all profiling data.
- void reportLayerTime(
- char const *layerName,
- float timeMs
TensorRT IProfiler interface implementation.
-
LayerProfilerMetrics getMetrics() const#
Get metrics.
Public Static Functions
-
static LayerProfiler &getInstance()#
Get the singleton instance.
-
LayerProfiler(LayerProfiler const&) = delete#