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

Constructor & Destructor Documentation

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

Definition at line 292 of file NVProfilerService.cc.

References NVProfilerService::concurrentStreams_.

292  {
293  global = nvtxDomainCreate("EDM Global");
295  }
void allocate_streams(unsigned int streams)
unsigned int concurrentStreams_
NVProfilerService::Domains::~Domains ( )
inline

Definition at line 297 of file NVProfilerService.cc.

297  {
298  nvtxDomainDestroy(global);
299  for (unsigned int sid = 0; sid < stream.size(); ++sid) {
300  nvtxDomainDestroy(stream[sid]);
301  }
302  }
std::vector< nvtxDomainHandle_t > stream

Member Function Documentation

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

Definition at line 304 of file NVProfilerService.cc.

References cmsPerfStripChart::format, and str.

304  {
305  stream.resize(streams);
306  for (unsigned int sid = 0; sid < streams; ++sid) {
307  stream[sid] = nvtxDomainCreate((boost::format("EDM Stream %d") % sid).str().c_str());
308  }
309  }
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 289 of file NVProfilerService.cc.

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

Definition at line 290 of file NVProfilerService.cc.