Gaudi::RootPerfMonSvc Class Reference

Description: More...

#include <src/RootPerfMonSvc.h>

Inheritance diagram for Gaudi::RootPerfMonSvc:
Collaboration diagram for Gaudi::RootPerfMonSvc:

Public Member Functions

 RootPerfMonSvc (const std::string &name, ISvcLocator *svc)
 Standard constructor. More...
 
 ~RootPerfMonSvc () override=default
 Standard destructor. More...
 
StatusCode error (const std::string &msg)
 Standard way to print errors. More...
 
StatusCode initialize () override
 Service overload: initialize the service. More...
 
StatusCode finalize () override
 Service overload: Finalize the service. More...
 
void handle (const Incident &incident) override
 IIncidentListener override: Inform that a new incident has occurred. More...
 
StatusCode stop () override
 
 RootPerfMonSvc (const std::string &name, ISvcLocator *svc)
 Standard constructor. More...
 
 ~RootPerfMonSvc () override=default
 Standard destructor. More...
 
StatusCode error (const std::string &msg)
 Standard way to print errors. More...
 
StatusCode initialize () override
 Service overload: initialize the service. More...
 
StatusCode finalize () override
 Service overload: Finalize the service. More...
 
void handle (const Incident &incident) override
 IIncidentListener override: Inform that a new incident has occurred. More...
 
StatusCode stop () override
 
- Public Member Functions inherited from Service
const std::string & name () const override
 Retrieve name of the service. More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service. More...
 
StatusCode sysStart () override
 Initialize Service. More...
 
StatusCode sysStop () override
 Initialize Service. More...
 
StatusCode sysFinalize () override
 Finalize Service. More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
StatusCode setProperty (const Property &p) override
 
StatusCode setProperty (const std::string &s) override
 
StatusCode setProperty (const std::string &n, const std::string &v) override
 
StatusCode getProperty (Property *p) const override
 
const PropertygetProperty (const std::string &name) const override
 
StatusCode getProperty (const std::string &n, std::string &v) const override
 
const std::vector< Property * > & getProperties () const override
 
bool hasProperty (const std::string &name) const override
 
template<class TYPE >
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor. More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator. More...
 
StatusCode setProperties ()
 Method for setting declared properties to the values specified for the job. More...
 
template<class T >
StatusCode service (const std::string &name, const T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
template<class T >
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
 Declare the named property. More...
 
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
 Declare remote named properties. More...
 
template<class T >
StatusCode declarePrivateTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true)
 Declare used Private tool. More...
 
template<class T >
StatusCode declarePublicTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true)
 Declare used Public tool. More...
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
const std::string & name () const override
 Retrieve name of the service. More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service. More...
 
StatusCode sysStart () override
 Initialize Service. More...
 
StatusCode sysStop () override
 Initialize Service. More...
 
StatusCode sysFinalize () override
 Finalize Service. More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
StatusCode setProperty (const Property &p) override
 
StatusCode setProperty (const std::string &s) override
 
StatusCode setProperty (const std::string &n, const std::string &v) override
 
StatusCode getProperty (Property *p) const override
 
const PropertygetProperty (const std::string &name) const override
 
StatusCode getProperty (const std::string &n, std::string &v) const override
 
const std::vector< Property * > & getProperties () const override
 
bool hasProperty (const std::string &name) const override
 
template<class TYPE >
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor. More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator. More...
 
StatusCode setProperties ()
 Method for setting declared properties to the values specified for the job. More...
 
template<class T >
StatusCode service (const std::string &name, const T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
template<class T >
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
 Declare the named property. More...
 
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
 Declare remote named properties. More...
 
template<class T >
StatusCode declarePrivateTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true)
 Declare used Private tool. More...
 
template<class T >
StatusCode declarePublicTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true)
 Declare used Public tool. More...
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
- Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > >
 ~CommonMessaging () override=default
 Virtual destructor. More...
 
 ~CommonMessaging () override=default
 Virtual destructor. More...
 
SmartIF< IMessageSvc > & msgSvc () const
 The standard message service. More...
 
SmartIF< IMessageSvc > & msgSvc () const
 The standard message service. More...
 
MsgStreammsgStream () const
 Return an uninitialized MsgStream. More...
 
MsgStreammsgStream (const MSG::Level level) const
 Predefined configurable message stream for the efficient printouts. More...
 
MsgStreammsgStream () const
 Return an uninitialized MsgStream. More...
 
MsgStreammsgStream (const MSG::Level level) const
 Predefined configurable message stream for the efficient printouts. More...
 
MsgStreamalways () const
 shortcut for the method msgStream(MSG::ALWAYS) More...
 
MsgStreamalways () const
 shortcut for the method msgStream(MSG::ALWAYS) More...
 
MsgStreamfatal () const
 shortcut for the method msgStream(MSG::FATAL) More...
 
MsgStreamfatal () const
 shortcut for the method msgStream(MSG::FATAL) More...
 
MsgStreamerr () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamerr () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamerror () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamerror () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamwarning () const
 shortcut for the method msgStream(MSG::WARNING) More...
 
MsgStreamwarning () const
 shortcut for the method msgStream(MSG::WARNING) More...
 
MsgStreaminfo () const
 shortcut for the method msgStream(MSG::INFO) More...
 
MsgStreaminfo () const
 shortcut for the method msgStream(MSG::INFO) More...
 
MsgStreamdebug () const
 shortcut for the method msgStream(MSG::DEBUG) More...
 
MsgStreamdebug () const
 shortcut for the method msgStream(MSG::DEBUG) More...
 
MsgStreamverbose () const
 shortcut for the method msgStream(MSG::VERBOSE) More...
 
MsgStreamverbose () const
 shortcut for the method msgStream(MSG::VERBOSE) More...
 
MsgStreammsg () const
 shortcut for the method msgStream(MSG::INFO) More...
 
MsgStreammsg () const
 shortcut for the method msgStream(MSG::INFO) More...
 
MSG::Level msgLevel () const
 get the output level from the embedded MsgStream More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 
MSG::Level msgLevel () const
 get the output level from the embedded MsgStream More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 
- Public Member Functions inherited from IIncidentListener
 DeclareInterfaceID (IIncidentListener, 2, 0)
 InterfaceID. More...
 
 DeclareInterfaceID (IIncidentListener, 2, 0)
 InterfaceID. More...
 
- Public Member Functions inherited from IInterface
virtual void * i_cast (const InterfaceID &) const =0
 main cast function More...
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces. More...
 
virtual unsigned long addRef ()=0
 Increment the reference count of Interface instance. More...
 
virtual unsigned long release ()=0
 Release Interface instance. More...
 
virtual unsigned long refCount () const =0
 Current reference count. More...
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance. More...
 
virtual ~IInterface ()=default
 Virtual destructor. More...
 
virtual void * i_cast (const InterfaceID &) const =0
 main cast function More...
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces. More...
 
virtual unsigned long addRef ()=0
 Increment the reference count of Interface instance. More...
 
virtual unsigned long release ()=0
 Release Interface instance. More...
 
virtual unsigned long refCount () const =0
 Current reference count. More...
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance. More...
 
virtual ~IInterface ()=default
 Virtual destructor. More...
 

Protected Types

enum  EventType { EVENT = 1, FSR = 2, EVENT = 1, FSR = 2 }
 
enum  EventType { EVENT = 1, FSR = 2, EVENT = 1, FSR = 2 }
 

Protected Member Functions

virtual void record (EventType eventType)
 
MsgStreamlog () const
 Helper: Use message streamer. More...
 
virtual void record (EventType eventType)
 
MsgStreamlog () const
 Helper: Use message streamer. More...
 
- Protected Member Functions inherited from Service
 ~Service () override
 Standard Destructor. More...
 
int outputLevel () const
 get the Service's output level More...
 
 ~Service () override
 Standard Destructor. More...
 
int outputLevel () const
 get the Service's output level More...
 
- Protected Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > >
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 

Protected Attributes

SmartIF< IIncidentSvcm_incidentSvc
 Reference to incident service. More...
 
std::string m_ioPerfStats
 Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name. More...
 
std::unique_ptr< MsgStreamm_log
 Message streamer. More...
 
std::string m_setStreams
 
std::string m_basketSize
 
std::string m_bufferSize
 
std::string m_splitLevel
 
TTree * m_perfTree
 
std::unique_ptr< TFile > m_perfFile
 
std::set< std::string > m_outputs
 
Int_t m_eventType
 
ULong_t m_utime
 
ULong_t m_stime
 
ULong_t m_vsize
 
Long_t m_eventNumber
 
Long_t m_rss
 
Long_t m_time
 
- Protected Attributes inherited from Service
IntegerProperty m_outputLevel = MSG::NIL
 Service output level. More...
 
Gaudi::StateMachine::State m_state = Gaudi::StateMachine::OFFLINE
 Service state. More...
 
Gaudi::StateMachine::State m_targetState = Gaudi::StateMachine::OFFLINE
 Service state. More...
 
- Protected Attributes inherited from CommonMessaging< implements3< IService, IProperty, IStateful > >
SmartIF< IMessageSvcm_msgsvc
 Pointer to the message service;. More...
 
std::unique_ptr< MsgStreamm_msgStream
 The predefined message stream. More...
 
bool m_streamWithService
 Flag to create a new MsgStream if it was created without the message service. More...
 

Additional Inherited Members

- Public Types inherited from Service
typedef Gaudi::PluginService::Factory< IService *, const std::string &, ISvcLocator * > Factory
 
typedef Gaudi::PluginService::Factory< IService *, const std::string &, ISvcLocator * > Factory
 
- Public Types inherited from CommonMessaging< implements3< IService, IProperty, IStateful > >
using base_class = CommonMessaging
 
using base_class = CommonMessaging
 
- Public Types inherited from IInterface
enum  Status {
  SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR,
  SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR
}
 Return status. More...
 
enum  Status {
  SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR,
  SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR
}
 Return status. More...
 
using iid = Gaudi::InterfaceId< IInterface, 0, 0 >
 Interface ID. More...
 
using ext_iids = Gaudi::interface_list< iid >
 Extra interfaces. More...
 
using iid = Gaudi::InterfaceId< IInterface, 0, 0 >
 Interface ID. More...
 
using ext_iids = Gaudi::interface_list< iid >
 Extra interfaces. More...
 
- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface. More...
 
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface. More...
 

Detailed Description

Description:

RootPerfMonSvc class implementation definition.

Author
Markus Frank, Ivan Valencik
Version
1.0
Date
20/12/2009

Definition at line 41 of file RootPerfMonSvc.h.

Member Enumeration Documentation

enum Gaudi::RootPerfMonSvc::EventType
protected
Enumerator
EVENT 
FSR 
EVENT 
FSR 

Definition at line 67 of file RootPerfMonSvc.h.

enum Gaudi::RootPerfMonSvc::EventType
protected
Enumerator
EVENT 
FSR 
EVENT 
FSR 

Definition at line 67 of file RootPerfMonSvc.h.

Constructor & Destructor Documentation

Gaudi::RootPerfMonSvc::RootPerfMonSvc ( const std::string &  name,
ISvcLocator svc 
)

Standard constructor.

Gaudi::RootPerfMonSvc::~RootPerfMonSvc ( )
overridedefault

Standard destructor.

Gaudi::RootPerfMonSvc::RootPerfMonSvc ( const std::string &  name,
ISvcLocator svc 
)

Standard constructor.

Gaudi::RootPerfMonSvc::~RootPerfMonSvc ( )
overridedefault

Standard destructor.

Member Function Documentation

StatusCode Gaudi::RootPerfMonSvc::error ( const std::string &  msg)

Standard way to print errors.

after the printout an exception is thrown.

Parameters
msg[IN] Message string to be printed.
Returns
Status code returning failure.
StatusCode Gaudi::RootPerfMonSvc::error ( const std::string &  msg)

Standard way to print errors.

after the printout an exception is thrown.

Parameters
msg[IN] Message string to be printed.
Returns
Status code returning failure.
StatusCode RootPerfMonSvc::finalize ( )
override

Service overload: Finalize the service.

Definition at line 148 of file RootPerfMonSvc.cpp.

148  {
149  record(FSR);
150  log() << MSG::INFO;
151  m_log.reset();
153 
154  m_perfFile->Write();
155  m_perfFile->Close();
156  m_perfFile.reset();
157 
158  return Service::finalize();
159 }
StatusCode finalize() override
Definition: Service.cpp:188
virtual void record(EventType eventType)
std::unique_ptr< TFile > m_perfFile
MsgStream & log() const
Helper: Use message streamer.
SmartIF< IIncidentSvc > m_incidentSvc
Reference to incident service.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
Definition: SmartIF.h:88
std::unique_ptr< MsgStream > m_log
Message streamer.
StatusCode Gaudi::RootPerfMonSvc::finalize ( )
override

Service overload: Finalize the service.

void Gaudi::RootPerfMonSvc::handle ( const Incident incident)
overridevirtual

IIncidentListener override: Inform that a new incident has occurred.

Implements IIncidentListener.

void RootPerfMonSvc::handle ( const Incident incident)
overridevirtual

IIncidentListener override: Inform that a new incident has occurred.

Implements IIncidentListener.

Definition at line 117 of file RootPerfMonSvc.cpp.

117  {
118  std::string t = incident.type();
119  if ( !t.compare(IncidentType::BeginEvent) ) {
120  m_eventNumber++;
121  record(EVENT);
122  return;
123  }
124  if ( !t.compare("CONNECTED_OUTPUT") ) {
125  m_outputs.insert(incident.source());
126  }
127 }
const std::string & type() const
Access to the incident type.
Definition: Incident.h:34
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:40
virtual void record(EventType eventType)
std::set< std::string > m_outputs
StatusCode Gaudi::RootPerfMonSvc::initialize ( )
override

Service overload: initialize the service.

StatusCode RootPerfMonSvc::initialize ( )
override

Service overload: initialize the service.

Definition at line 55 of file RootPerfMonSvc.cpp.

55  {
56  string cname;
58  if ( !status.isSuccess() )
59  return error("Failed to initialize Service base class.");
60  m_log.reset( new MsgStream(msgSvc(),name()) );
61  m_incidentSvc = service("IncidentSvc");
62  if( !m_incidentSvc )
63  return error("Unable to localize interface from service:IncidentSvc");
64 
65  m_incidentSvc->addListener(this, IncidentType::BeginEvent, 1, false, false);
66  m_incidentSvc->addListener(this, "NEW_STREAM", 1, false, false);
67  m_incidentSvc->addListener(this, "CONNECTED_OUTPUT", 1, false, false);
68 
69  if (m_ioPerfStats.empty())
70  return error("Performance monitoring file IOPerfStats was not defined.");
71 
72  TDirectory::TContext ctxt(nullptr);
73  m_perfFile.reset( new TFile(m_ioPerfStats.c_str(),"RECREATE") );
74  if (!m_perfFile ) return error("Could not create ROOT file.");
75 
76  if (!(m_perfTree = new TTree("T", "performance measurement")))
77  return error("Could not create tree.");
78 
79  m_perfTree->Branch("utime", &m_utime, "utime/l");
80  m_perfTree->Branch("stime", &m_stime, "stime/l");
81  m_perfTree->Branch("vsize", &m_vsize, "vsize/l");
82  m_perfTree->Branch("rss", &m_rss, "rss/L");
83  m_perfTree->Branch("time", &m_time, "time/L");
84  m_eventNumber = 0;
85  m_perfTree->Branch("event_number", &m_eventNumber, "event_number/L");
86  m_perfTree->Branch("event_type", &m_eventType, "event_type/I");
87 
88  if (m_setStreams.empty())
89  m_setStreams = "undefined";
90  if (m_basketSize.empty())
91  m_basketSize = "undefined";
92  if (m_bufferSize.empty())
93  m_bufferSize = "undefined";
94  if (m_splitLevel.empty())
95  m_splitLevel = "undefined";
96 
97  auto map = new TMap();
98  map->Add(new TObjString("streams"), new TObjString(m_setStreams.c_str()));
99  map->Add(new TObjString("basket_size"), new TObjString(m_basketSize.c_str()));
100  map->Add(new TObjString("buffer_size"), new TObjString(m_bufferSize.c_str()));
101  map->Add(new TObjString("split_level"), new TObjString(m_splitLevel.c_str()));
102  map->Write("params", TObject::kSingleKey);
103  return S_OK;
104 }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
StatusCode initialize() override
Definition: Service.cpp:63
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
#define S_OK
std::string m_ioPerfStats
Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name.
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:320
struct GAUDI_API map
Parametrisation class for map-like implementation.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::string m_splitLevel
std::string m_setStreams
std::unique_ptr< TFile > m_perfFile
std::string m_bufferSize
std::string m_basketSize
SmartIF< IIncidentSvc > m_incidentSvc
Reference to incident service.
virtual void addListener(IIncidentListener *lis, const std::string &type="", long priority=0, bool rethrow=false, bool singleShot=false)=0
Add listener.
StatusCode service(const std::string &name, const T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
Definition: Service.h:141
std::unique_ptr< MsgStream > m_log
Message streamer.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream& Gaudi::RootPerfMonSvc::log ( ) const
inlineprotected

Helper: Use message streamer.

Definition at line 73 of file RootPerfMonSvc.h.

73 { return *m_log; }
std::unique_ptr< MsgStream > m_log
Message streamer.
MsgStream& Gaudi::RootPerfMonSvc::log ( ) const
inlineprotected

Helper: Use message streamer.

Definition at line 73 of file RootPerfMonSvc.h.

73 { return *m_log; }
std::unique_ptr< MsgStream > m_log
Message streamer.
void RootPerfMonSvc::record ( EventType  eventType)
protectedvirtual

Definition at line 106 of file RootPerfMonSvc.cpp.

106  {
107  SysProcStat data;
108  m_eventType = eventType;
109  m_utime = (ULong_t)data.utime;
110  m_stime = (ULong_t)data.stime;
111  m_vsize = (ULong_t)data.vsize;
112  m_rss = (Long_t)data.rss;
113  m_time = (Long_t)data.time;
114  m_perfTree->Fill();
115 }
long unsigned stime
Definition: SysProcStat.h:17
long unsigned vsize
Definition: SysProcStat.h:17
long unsigned utime
Definition: SysProcStat.h:17
virtual void Gaudi::RootPerfMonSvc::record ( EventType  eventType)
protectedvirtual
StatusCode Gaudi::RootPerfMonSvc::stop ( )
override
StatusCode RootPerfMonSvc::stop ( )
override

Definition at line 130 of file RootPerfMonSvc.cpp.

130  {
131  char text[64];
132  record(FSR);
133  auto map = new TMap();
134  for(const auto &i : m_outputs) {
135  const char* fn = i.c_str();
136  Long_t id, siz, flags, tim;
137  if ( 0 == gSystem->GetPathInfo(fn,&id,&siz,&flags,&tim) ) {
138  ::sprintf(text,"%ld",siz);
139  map->Add(new TObjString(fn), new TObjString(text));
140  }
141  }
142  TDirectory::TContext ctxt(m_perfFile.get());
143  map->Write("Outputs", TObject::kSingleKey);
144  return S_OK;
145 }
virtual void record(EventType eventType)
#define S_OK
struct GAUDI_API map
Parametrisation class for map-like implementation.
std::set< std::string > m_outputs
std::unique_ptr< TFile > m_perfFile
list i
Definition: ana.py:128

Member Data Documentation

std::string Gaudi::RootPerfMonSvc::m_basketSize
protected

Definition at line 52 of file RootPerfMonSvc.h.

std::string Gaudi::RootPerfMonSvc::m_bufferSize
protected

Definition at line 53 of file RootPerfMonSvc.h.

Long_t Gaudi::RootPerfMonSvc::m_eventNumber
protected

Definition at line 64 of file RootPerfMonSvc.h.

Int_t Gaudi::RootPerfMonSvc::m_eventType
protected

Definition at line 62 of file RootPerfMonSvc.h.

SmartIF< IIncidentSvc > Gaudi::RootPerfMonSvc::m_incidentSvc
protected

Reference to incident service.

Definition at line 45 of file RootPerfMonSvc.h.

std::string Gaudi::RootPerfMonSvc::m_ioPerfStats
protected

Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name.

Definition at line 47 of file RootPerfMonSvc.h.

std::unique_ptr< MsgStream > Gaudi::RootPerfMonSvc::m_log
protected

Message streamer.

Definition at line 49 of file RootPerfMonSvc.h.

std::set< std::string > Gaudi::RootPerfMonSvc::m_outputs
protected

Definition at line 60 of file RootPerfMonSvc.h.

std::unique_ptr< TFile > Gaudi::RootPerfMonSvc::m_perfFile
protected

Definition at line 58 of file RootPerfMonSvc.h.

TTree * Gaudi::RootPerfMonSvc::m_perfTree
protected

Definition at line 56 of file RootPerfMonSvc.h.

Long_t Gaudi::RootPerfMonSvc::m_rss
protected

Definition at line 64 of file RootPerfMonSvc.h.

std::string Gaudi::RootPerfMonSvc::m_setStreams
protected

Definition at line 51 of file RootPerfMonSvc.h.

std::string Gaudi::RootPerfMonSvc::m_splitLevel
protected

Definition at line 54 of file RootPerfMonSvc.h.

ULong_t Gaudi::RootPerfMonSvc::m_stime
protected

Definition at line 63 of file RootPerfMonSvc.h.

Long_t Gaudi::RootPerfMonSvc::m_time
protected

Definition at line 64 of file RootPerfMonSvc.h.

ULong_t Gaudi::RootPerfMonSvc::m_utime
protected

Definition at line 63 of file RootPerfMonSvc.h.

ULong_t Gaudi::RootPerfMonSvc::m_vsize
protected

Definition at line 63 of file RootPerfMonSvc.h.


The documentation for this class was generated from the following files: