Go to the documentation of this file.
   25 int mallctl( 
const char* 
name, 
void* oldp, 
size_t* oldlenp, 
void* newp, 
size_t newlen );
 
   42   static const std::string serviceName = 
"IncidentSvc";
 
   45     error() << 
"Cannot retrieve " << serviceName << 
endmsg;
 
   49   debug() << 
"Register to the IncidentSvc" << 
endmsg;
 
   65     info() << 
"Stop profiling trigger was specified but no start. Defaulting to first events" << 
endmsg;
 
   76   m_incidentSvc->removeListener( 
this, IncidentType::BeginEvent );
 
   77   m_incidentSvc->removeListener( 
this, IncidentType::EndEvent );
 
   79   return base_class::finalize();
 
   89   if ( IncidentType::BeginEvent == incident.
type() ) {
 
   91   } 
else if ( IncidentType::EndEvent == incident.
type() ) {
 
   98       if ( startincident == incident.
type() ) {
 
   99         info() << 
"Starting Jemalloc profile at incident " << incident.
type() << 
endmsg;
 
  109       if ( stopincident == incident.
type() ) {
 
  110         info() << 
"Stopping Jemalloc profile at incident " << incident.
type() << 
endmsg;
 
  148   mallctl( 
"prof.dump", NULL, NULL, NULL, 0 );
 
  164   mallctl( 
"prof.dump", NULL, NULL, NULL, 0 );
 
  
 
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
 
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
 
Gaudi::Property< int > m_nStartFromEvent
 
int mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen)
 
Gaudi::Property< int > m_nStopAtEvent
 
void handle(const Incident &incident) override
 
Gaudi::Property< std::vector< std::string > > m_stopAtIncidents
 
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
 
void startProfiling()
Utility method to start profiling with jemalloc.
 
constexpr static const auto SUCCESS
 
void dumpProfile()
Utility method to dump profile with jemalloc.
 
bool m_profiling
Status of the profiling.
 
void stopProfiling()
Utility method to stop profiling with jemalloc.
 
Gaudi::Property< int > m_dumpPeriod
 
#define DECLARE_COMPONENT(type)
 
StatusCode finalize() override
Finalizer.
 
const std::string & type() const
Access to the incident type.
 
constexpr static const auto FAILURE
 
int m_eventNumber
Current event number.
 
StatusCode initialize() override
Initializer.
 
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
 
Gaudi::Property< std::vector< std::string > > m_startFromIncidents