12 int mallctl(
const char *
name,
void *oldp,
size_t *oldlenp,
void *newp,
size_t newlen);
33 int res =
mallctl(
"prof.active", NULL, NULL, &active,
sizeof(active));
54 info() <<
"Starting Jemalloc profile at event " 60 info() <<
"Jemalloc Dumping heap at event " 62 mallctl(
"prof.dump", NULL, NULL, NULL, 0);
68 info() <<
"Stopping Jemalloc profile at event " 70 mallctl(
"prof.dump", NULL, NULL, NULL, 0);
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode initialize() override
standard initialization method
Gaudi::Property< int > m_nStopAtEvent
bool isFailure() const
Test for a status code of FAILURE.
Gaudi::Property< int > m_dumpPeriod
This class is used for returning status codes from appropriate routines.
StatusCode finalize() override
standard finalization method
#define DECLARE_ALGORITHM_FACTORY(x)
StatusCode finalize() override
Algorithm finalization.
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
Gaudi::Property< int > m_nStartFromEvent
StatusCode execute() override
Algorithm execution.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
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)