Jetson Linux API Reference

32.7.5 Release
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

◆ getProfilerData()

void NvApplicationProfiler::getProfilerData ( NvAppProfilerData data)

Gets the profiler data.

Parameters
[out]dataPointer to the ProfilerData structure to be filled.

◆ getProfilerInstance()

static NvApplicationProfiler& NvApplicationProfiler::getProfilerInstance ( )
static

Gets a reference to the global NvApplicationProfiler instance.

Returns
A reference to the global NvApplicationProfiler instance.

◆ printProfilerData()

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.

◆ start()

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.

◆ stop()

void NvApplicationProfiler::stop ( )

Stops the profiler.

Field Documentation

◆ DefaultSamplingInterval

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: