NVIDIA DeepStream SDK API Reference

8.0 Release
deepstream::PerfMonitor Class Reference

Detailed Description

Definition at line 18 of file perf_monitor.hpp.

Public Member Functions

 PerfMonitor (unsigned int batch_size, uint64_t interval, const std::string src_type, bool show_name=true)
 constructor for a performance monitor instance More...
 
virtual ~PerfMonitor ()
 
void apply (Element &element, const std::string &tips)
 Apply the performance monitory on an element. More...
 
void pause ()
 Pause the monitor. More...
 
void resume ()
 Resume the monitor. More...
 
void addStream (uint32_t source_id, const char *uri, const char *sensor_id, const char *sensor_name)
 Add a new stream. More...
 
void removeStream (uint32_t source_id)
 Add a new stream. More...
 
void print (void *info)
 

Protected Attributes

unsigned int batch_size_
 
uint64_t interval_sec_
 
void * priv_
 
void * fps_data_
 

Constructor & Destructor Documentation

◆ PerfMonitor()

deepstream::PerfMonitor::PerfMonitor ( unsigned int  batch_size,
uint64_t  interval,
const std::string  src_type,
bool  show_name = true 
)

constructor for a performance monitor instance

Parameters
[in]batch_sizebatch size of the pipeline
[in]intervalmonitor interval in seconds
[in]src_typetype name of the source bin
[in]show_nameshow the stream name in perf log

◆ ~PerfMonitor()

virtual deepstream::PerfMonitor::~PerfMonitor ( )
virtual

Member Function Documentation

◆ addStream()

void deepstream::PerfMonitor::addStream ( uint32_t  source_id,
const char *  uri,
const char *  sensor_id,
const char *  sensor_name 
)

Add a new stream.

◆ apply()

void deepstream::PerfMonitor::apply ( Element element,
const std::string &  tips 
)

Apply the performance monitory on an element.

Parameters
[in]elementreference to the targeted element
[in]tipsname of the pad

◆ pause()

void deepstream::PerfMonitor::pause ( )

Pause the monitor.

◆ print()

void deepstream::PerfMonitor::print ( void *  info)

◆ removeStream()

void deepstream::PerfMonitor::removeStream ( uint32_t  source_id)

Add a new stream.

◆ resume()

void deepstream::PerfMonitor::resume ( )

Resume the monitor.

Field Documentation

◆ batch_size_

unsigned int deepstream::PerfMonitor::batch_size_
protected

Definition at line 66 of file perf_monitor.hpp.

◆ fps_data_

void* deepstream::PerfMonitor::fps_data_
protected

Definition at line 69 of file perf_monitor.hpp.

◆ interval_sec_

uint64_t deepstream::PerfMonitor::interval_sec_
protected

Definition at line 67 of file perf_monitor.hpp.

◆ priv_

void* deepstream::PerfMonitor::priv_
protected

Definition at line 68 of file perf_monitor.hpp.


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