3 #include "GaudiKernel/AlgFactory.h"
14 int mallctl(
const char *name,
void *oldp,
size_t *oldlenp,
void *newp,
size_t newlen);
35 declareProperty(
"StartFromEventN", m_nStartFromEvent = 1,
36 "After what event we start profiling. "
39 declareProperty(
"StopAtEventN", m_nStopAtEvent = 0,
40 "After what event we stop profiling. "
41 "If 0 than we also profile finalization stage. Default = 0."
44 declareProperty(
"DumpPeriod", m_dumpPeriod = 100,
45 "Period for dumping head to a file. Default=100"
63 int res =
mallctl(
"prof.active", NULL, NULL, &active,
sizeof(active));
84 info() <<
"Starting Jemalloc profile at event "
90 info() <<
"Jemalloc Dumping heap at event "
92 mallctl(
"prof.dump", NULL, NULL, NULL, 0);
98 info() <<
"Stopping Jemalloc profile at event "
100 mallctl(
"prof.dump", NULL, NULL, NULL, 0);
MsgStream & info() const
shortcut for the method msgStream ( MSG::INFO )
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode finalize()
Algorithm finalization.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual StatusCode initialize()
standard initialization method
bool isFailure() const
Test for a status code of FAILURE.
MSG::Level msgLevel() const
The current message service output level.
virtual StatusCode execute()
Algorithm execution.
virtual StatusCode finalize()
standard finalization method
This class is used for returning status codes from appropriate routines.
The useful base class for data processing algorithms.
MsgStream & debug() const
shortcut for the method msgStream ( MSG::DEBUG )
virtual StatusCode initialize()
Algorithm initialization.
#define DECLARE_ALGORITHM_FACTORY(x)
virtual ~JemallocProfile()
Destructor.
Algorithm to enable/disable the profiling of the head by Jemalloc.
int mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen)