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

Constructor & Destructor Documentation

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

Definition at line 284 of file NVProfilerService.cc.

References NVProfilerService::concurrentStreams_.

284  {
285  global = nvtxDomainCreate("EDM Global");
287  }
void allocate_streams(unsigned int streams)
unsigned int concurrentStreams_
NVProfilerService::Domains::~Domains ( )
inline

Definition at line 289 of file NVProfilerService.cc.

289  {
290  nvtxDomainDestroy(global);
291  for (unsigned int sid = 0; sid < stream.size(); ++sid) {
292  nvtxDomainDestroy(stream[sid]);
293  }
294  }
std::vector< nvtxDomainHandle_t > stream

Member Function Documentation

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

Definition at line 296 of file NVProfilerService.cc.

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

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

Member Data Documentation

nvtxDomainHandle_t NVProfilerService::Domains::global

Definition at line 281 of file NVProfilerService.cc.

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

Definition at line 282 of file NVProfilerService.cc.