HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::profiling::EventRecord Struct Reference

#include <profiler_common.h>

Public Member Functions

 EventRecord ()=default
 
 EventRecord (EventCategory category, int process_id, int thread_id, std::string &&event_name, long long time_stamp, long long duration, std::unordered_map< std::string, std::string > &&event_args)
 
 EventRecord (EventCategory category, int process_id, int thread_id, const std::string &event_name, long long time_stamp, long long duration, const std::unordered_map< std::string, std::string > &event_args)
 
 EventRecord (const EventRecord &other)=default
 
 EventRecord (EventRecord &&other) noexcept=default
 
EventRecordoperator= (const EventRecord &other)=default
 
EventRecordoperator= (EventRecord &&other)=default
 

Public Attributes

EventCategory cat = EventCategory::API_EVENT
 
int pid = -1
 
int tid = -1
 
std::string name
 
long long ts = 0
 
long long dur = 0
 
std::unordered_map
< std::string, std::string
args {}
 

Detailed Description

Definition at line 30 of file profiler_common.h.

Constructor & Destructor Documentation

onnxruntime::profiling::EventRecord::EventRecord ( )
default
onnxruntime::profiling::EventRecord::EventRecord ( EventCategory  category,
int  process_id,
int  thread_id,
std::string &&  event_name,
long long  time_stamp,
long long  duration,
std::unordered_map< std::string, std::string > &&  event_args 
)
inline

Definition at line 32 of file profiler_common.h.

onnxruntime::profiling::EventRecord::EventRecord ( EventCategory  category,
int  process_id,
int  thread_id,
const std::string event_name,
long long  time_stamp,
long long  duration,
const std::unordered_map< std::string, std::string > &  event_args 
)
inline

Definition at line 47 of file profiler_common.h.

onnxruntime::profiling::EventRecord::EventRecord ( const EventRecord other)
default
onnxruntime::profiling::EventRecord::EventRecord ( EventRecord &&  other)
defaultnoexcept

Member Function Documentation

EventRecord& onnxruntime::profiling::EventRecord::operator= ( const EventRecord other)
default
EventRecord& onnxruntime::profiling::EventRecord::operator= ( EventRecord &&  other)
default

Member Data Documentation

std::unordered_map<std::string, std::string> onnxruntime::profiling::EventRecord::args {}

Definition at line 73 of file profiler_common.h.

EventCategory onnxruntime::profiling::EventRecord::cat = EventCategory::API_EVENT

Definition at line 67 of file profiler_common.h.

long long onnxruntime::profiling::EventRecord::dur = 0

Definition at line 72 of file profiler_common.h.

std::string onnxruntime::profiling::EventRecord::name

Definition at line 70 of file profiler_common.h.

int onnxruntime::profiling::EventRecord::pid = -1

Definition at line 68 of file profiler_common.h.

int onnxruntime::profiling::EventRecord::tid = -1

Definition at line 69 of file profiler_common.h.

long long onnxruntime::profiling::EventRecord::ts = 0

Definition at line 71 of file profiler_common.h.


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