Jetson Linux Multimedia API Reference

32.4.3 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NvElementProfiler Class Reference

Detailed Description

Definition at line 72 of file NvElementProfiler.h.

Data Structures

struct  NvElementProfilerData
 Holds profiling data for the element. More...
 

Public Types

typedef int ProfilerField
 

Public Member Functions

void getProfilerData (NvElementProfilerData &data)
 Gets the profiling data for the element. More...
 
void printProfilerData (std::ostream &out_stream=std::cout)
 Prints the element's profiling data to an output stream. More...
 
uint64_t startProcessing ()
 Informs the profiler that processing has started. More...
 
void finishProcessing (uint64_t id, bool is_late)
 Informs the profiler that processing has finished. More...
 
void enableProfiling (bool reset_data)
 Enables the profiler. More...
 
void disableProfiling ()
 Disables the profiler. More...
 

Static Public Attributes

static const ProfilerField PROFILER_FIELD_NONE = 0
 
static const ProfilerField PROFILER_FIELD_TOTAL_UNITS = 1
 
static const ProfilerField PROFILER_FIELD_LATE_UNITS = 2
 
static const ProfilerField PROFILER_FIELD_LATENCIES = 4
 
static const ProfilerField PROFILER_FIELD_FPS = 8
 
static const ProfilerField PROFILER_FIELD_ALL = (PROFILER_FIELD_FPS << 1) - 1
 

Friends

class NvElement
 

Member Function Documentation

void NvElementProfiler::disableProfiling ( )

Disables the profiler.

void NvElementProfiler::enableProfiling ( bool  reset_data)

Enables the profiler.

startProcessing() and finishProcessing() are ineffective until the profiler is enabled.

Parameters
[in]reset_dataReset the profiled data.
void NvElementProfiler::finishProcessing ( uint64_t  id,
bool  is_late 
)

Informs the profiler that processing has finished.

Has no effect if profiler is disabled.

Parameters
[in]idID of the unit whose processing is finished, 0 if the first unit in the profiler's queue should be picked.
[in]is_lateShould be true if the frame arrived late at the element.
void NvElementProfiler::getProfilerData ( NvElementProfilerData data)

Gets the profiling data for the element.

Parameters
[out]dataReference to the NvElementProfilerData structure which should be filled.
void NvElementProfiler::printProfilerData ( std::ostream &  out_stream = std::cout)

Prints the element's profiling data to an output stream.

Parameters
[in]out_streamReference to a std::ostream.
uint64_t NvElementProfiler::startProcessing ( )

Informs the profiler that processing has started.

Has no effect if profiler is disabled.

Returns
ID of the unit, to be supplied with finishProcessing();.

Friends And Related Function Documentation

friend class NvElement
friend

Definition at line 218 of file NvElementProfiler.h.


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