TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
SimpleProfiler Struct Reference
Inheritance diagram for SimpleProfiler:
Collaboration diagram for SimpleProfiler:

Classes

struct  Record
 

Public Member Functions

virtual void reportLayerTime (const char *layerName, float ms)
 Layer time reporting callback. More...
 
 SimpleProfiler (const char *name, const std::vector< SimpleProfiler > &srcProfilers=std::vector< SimpleProfiler >())
 

Private Attributes

std::string mName
 
std::vector< std::string > mLayerNames
 
std::map< std::string, RecordmProfile
 

Friends

std::ostream & operator<< (std::ostream &out, const SimpleProfiler &value)
 

Constructor & Destructor Documentation

◆ SimpleProfiler()

SimpleProfiler::SimpleProfiler ( const char *  name,
const std::vector< SimpleProfiler > &  srcProfilers = std::vector<SimpleProfiler>() 
)
inline

Member Function Documentation

◆ reportLayerTime()

virtual void SimpleProfiler::reportLayerTime ( const char *  layerName,
float  ms 
)
inlinevirtual

Layer time reporting callback.

Parameters
layerNameThe name of the layer, set when constructing the network definition.
msThe time in milliseconds to execute the layer.

Implements nvinfer1::IProfiler.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const SimpleProfiler value 
)
friend

Member Data Documentation

◆ mName

std::string SimpleProfiler::mName
private

◆ mLayerNames

std::vector<std::string> SimpleProfiler::mLayerNames
private

◆ mProfile

std::map<std::string, Record> SimpleProfiler::mProfile
private

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