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 284 of file NVProfilerService.cc.

Constructor & Destructor Documentation

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

Definition at line 288 of file NVProfilerService.cc.

References NVProfilerService::concurrentStreams_.

288  {
289  global = nvtxDomainCreate("EDM Global");
291  }
void allocate_streams(unsigned int streams)
unsigned int concurrentStreams_
NVProfilerService::Domains::~Domains ( )
inline

Definition at line 293 of file NVProfilerService.cc.

293  {
294  nvtxDomainDestroy(global);
295  for (unsigned int sid = 0; sid < stream.size(); ++sid) {
296  nvtxDomainDestroy(stream[sid]);
297  }
298  }
std::vector< nvtxDomainHandle_t > stream

Member Function Documentation

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

Definition at line 300 of file NVProfilerService.cc.

References cmsPerfStripChart::format, and harvestTrackValidationPlots::str.

300  {
301  stream.resize(streams);
302  for (unsigned int sid = 0; sid < streams; ++sid) {
303  stream[sid] = nvtxDomainCreate((boost::format("EDM Stream %d") % sid).str().c_str());
304  }
305  }
std::vector< nvtxDomainHandle_t > stream
format
Some error handling for the usage.

Member Data Documentation

nvtxDomainHandle_t NVProfilerService::Domains::global

Definition at line 285 of file NVProfilerService.cc.

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

Definition at line 286 of file NVProfilerService.cc.