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

Constructor & Destructor Documentation

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

Definition at line 303 of file NVProfilerService.cc.

References NVProfilerService::concurrentStreams_.

303  {
304  global = nvtxDomainCreate("EDM Global");
306  }
void allocate_streams(unsigned int streams)
unsigned int concurrentStreams_
NVProfilerService::Domains::~Domains ( )
inline

Definition at line 308 of file NVProfilerService.cc.

308  {
309  nvtxDomainDestroy(global);
310  for (unsigned int sid = 0; sid < stream.size(); ++sid) {
311  nvtxDomainDestroy(stream[sid]);
312  }
313  }
std::vector< nvtxDomainHandle_t > stream

Member Function Documentation

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

Definition at line 315 of file NVProfilerService.cc.

References dqm-mbProfile::format, str, and HLT_2018_cff::streams.

315  {
316  stream.resize(streams);
317  for (unsigned int sid = 0; sid < streams; ++sid) {
318  stream[sid] = nvtxDomainCreate((boost::format("EDM Stream %d") % sid).str().c_str());
319  }
320  }
std::vector< nvtxDomainHandle_t > stream
#define str(s)

Member Data Documentation

nvtxDomainHandle_t NVProfilerService::Domains::global

Definition at line 300 of file NVProfilerService.cc.

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

Definition at line 301 of file NVProfilerService.cc.