ArmNN
 21.02
ProfilerManager Class Reference

#include <Profiling.hpp>

Public Member Functions

void RegisterProfiler (IProfiler *profiler)
 
IProfilerGetProfiler ()
 

Static Public Member Functions

static ProfilerManagerGetInstance ()
 

Detailed Description

Definition at line 91 of file Profiling.hpp.

Member Function Documentation

◆ GetInstance()

ProfilerManager & GetInstance ( )
static

Definition at line 489 of file Profiling.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), DetectionPostProcessImpl(), RuntimeImpl::EnqueueWorkload(), armnn::GetProfilerEventSequenceSize(), GetSoftmaxProfilerJson(), LoadedNetwork::MakeLoadedNetwork(), RunTestFunction(), RunTestFunctionUsingTensorHandleFactory(), and ProfilerImpl::~ProfilerImpl().

490 {
491  // Global reference to the single ProfileManager instance allowed.
492  static ProfilerManager s_ProfilerManager;
493  return s_ProfilerManager;
494 }

◆ GetProfiler()

IProfiler * GetProfiler ( )

Definition at line 501 of file Profiling.cpp.

References armnn::tl_Profiler.

Referenced by BOOST_AUTO_TEST_CASE(), and armnn::GetProfilerEventSequenceSize().

502 {
503  return tl_Profiler;
504 }
thread_local IProfiler * tl_Profiler
Definition: Profiling.cpp:485

◆ RegisterProfiler()


The documentation for this class was generated from the following files: