CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
NVProfilerService::Domains Struct Reference

Public Member Functions

void allocate_streams (unsigned int streams)
 
 Domains (NVProfilerService *service)
 
 ~Domains ()
 

Public Attributes

nvtxDomainHandle_t global
 
std::vector< nvtxDomainHandle_t > stream
 

Detailed Description

Definition at line 304 of file NVProfilerService.cc.

Constructor & Destructor Documentation

NVProfilerService::Domains::Domains ( NVProfilerService service)
inline

Definition at line 308 of file NVProfilerService.cc.

References NVProfilerService::concurrentStreams_.

308  {
309  global = nvtxDomainCreate("EDM Global");
311  }
void allocate_streams(unsigned int streams)
unsigned int concurrentStreams_
NVProfilerService::Domains::~Domains ( )
inline

Definition at line 313 of file NVProfilerService.cc.

313  {
314  nvtxDomainDestroy(global);
315  for (unsigned int sid = 0; sid < stream.size(); ++sid) {
316  nvtxDomainDestroy(stream[sid]);
317  }
318  }
std::vector< nvtxDomainHandle_t > stream

Member Function Documentation

void NVProfilerService::Domains::allocate_streams ( unsigned int  streams)
inline

Definition at line 320 of file NVProfilerService.cc.

References cmsPerfStripChart::format, and str.

320  {
321  stream.resize(streams);
322  for (unsigned int sid = 0; sid < streams; ++sid) {
323  stream[sid] = nvtxDomainCreate((boost::format("EDM Stream %d") % sid).str().c_str());
324  }
325  }
std::vector< nvtxDomainHandle_t > stream
format
Some error handling for the usage.
#define str(s)

Member Data Documentation

nvtxDomainHandle_t NVProfilerService::Domains::global

Definition at line 305 of file NVProfilerService.cc.

std::vector<nvtxDomainHandle_t> NVProfilerService::Domains::stream

Definition at line 306 of file NVProfilerService.cc.