L4T Multimedia API Reference

28.2 Release

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

Detailed Description

Definition at line 67 of file NvApplicationProfiler.h.

Data Structures

struct  NvAppProfilerData
 Holds the profiling data. More...
 

Public Member Functions

void start (uint32_t sampling_interval_ms)
 Starts the profiler with the specified sampling interval. More...
 
void stop ()
 Stops the profiler. More...
 
void printProfilerData (std::ostream &outstream=std::cout)
 Prints the profiler data to an output stream. More...
 
void getProfilerData (NvAppProfilerData &data)
 Gets the profiler data. More...
 

Static Public Member Functions

static NvApplicationProfilergetProfilerInstance ()
 Gets a reference to the global NvApplicationProfiler instance. More...
 

Static Public Attributes

static const uint64_t DefaultSamplingInterval = 100
 

Member Function Documentation

void NvApplicationProfiler::getProfilerData ( NvAppProfilerData data)

Gets the profiler data.

Parameters
[out]dataPointer to the ProfilerData structure to be filled.
static NvApplicationProfiler& NvApplicationProfiler::getProfilerInstance ( )
static

Gets a reference to the global NvApplicationProfiler instance.

Returns
A reference to the global NvApplicationProfiler instance.
void NvApplicationProfiler::printProfilerData ( std::ostream &  outstream = std::cout)

Prints the profiler data to an output stream.

Parameters
[in]outstreamA reference to an output stream of type std::ostream. std::cout if not specified.
void NvApplicationProfiler::start ( uint32_t  sampling_interval_ms)

Starts the profiler with the specified sampling interval.

This method resets the internal profiler data measurements.

Starting an already started profiler does nothing.

Parameters
[in]sampling_interval_msSampling interval in milliseconds.
void NvApplicationProfiler::stop ( )

Stops the profiler.

Field Documentation

const uint64_t NvApplicationProfiler::DefaultSamplingInterval = 100
static

Definition at line 87 of file NvApplicationProfiler.h.


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