HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::concurrency::ThreadPoolProfiler Class Reference

#include <EigenNonBlockingThreadPool.h>

Public Types

enum  ThreadPoolEvent {
  DISTRIBUTION = 0, DISTRIBUTION_ENQUEUE, RUN, WAIT,
  WAIT_REVOKE, MAX_EVENT
}
 
using Clock = std::chrono::high_resolution_clock
 

Public Member Functions

 ThreadPoolProfiler (int num_threads, const CHAR_TYPE *threal_pool_name)
 
 ~ThreadPoolProfiler ()
 
 ORT_DISALLOW_COPY_ASSIGNMENT_AND_MOVE (ThreadPoolProfiler)
 
void Start ()
 
std::string Stop ()
 
void LogStart ()
 
void LogEnd (ThreadPoolEvent)
 
void LogEndAndStart (ThreadPoolEvent)
 
void LogStartAndCoreAndBlock (std::ptrdiff_t block_size)
 
void LogCoreAndBlock (std::ptrdiff_t block_size)
 
void LogThreadId (int thread_idx)
 
void LogRun (int thread_idx)
 
std::string DumpChildThreadStat ()
 

Detailed Description

Definition at line 237 of file EigenNonBlockingThreadPool.h.

Member Typedef Documentation

using onnxruntime::concurrency::ThreadPoolProfiler::Clock = std::chrono::high_resolution_clock

Definition at line 250 of file EigenNonBlockingThreadPool.h.

Member Enumeration Documentation

Enumerator
DISTRIBUTION 
DISTRIBUTION_ENQUEUE 
RUN 
WAIT 
WAIT_REVOKE 
MAX_EVENT 

Definition at line 239 of file EigenNonBlockingThreadPool.h.

Constructor & Destructor Documentation

onnxruntime::concurrency::ThreadPoolProfiler::ThreadPoolProfiler ( int  num_threads,
const CHAR_TYPE threal_pool_name 
)
onnxruntime::concurrency::ThreadPoolProfiler::~ThreadPoolProfiler ( )

Member Function Documentation

std::string onnxruntime::concurrency::ThreadPoolProfiler::DumpChildThreadStat ( )
void onnxruntime::concurrency::ThreadPoolProfiler::LogCoreAndBlock ( std::ptrdiff_t  block_size)
void onnxruntime::concurrency::ThreadPoolProfiler::LogEnd ( ThreadPoolEvent  )
void onnxruntime::concurrency::ThreadPoolProfiler::LogEndAndStart ( ThreadPoolEvent  )
void onnxruntime::concurrency::ThreadPoolProfiler::LogRun ( int  thread_idx)
void onnxruntime::concurrency::ThreadPoolProfiler::LogStart ( )
void onnxruntime::concurrency::ThreadPoolProfiler::LogStartAndCoreAndBlock ( std::ptrdiff_t  block_size)
void onnxruntime::concurrency::ThreadPoolProfiler::LogThreadId ( int  thread_idx)
onnxruntime::concurrency::ThreadPoolProfiler::ORT_DISALLOW_COPY_ASSIGNMENT_AND_MOVE ( ThreadPoolProfiler  )
void onnxruntime::concurrency::ThreadPoolProfiler::Start ( )
std::string onnxruntime::concurrency::ThreadPoolProfiler::Stop ( )

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