11#ifndef PERFMONTESTS_PERFMONTESTMANYLEAKSALG_H
12#define PERFMONTESTS_PERFMONTESTMANYLEAKSALG_H
34 virtual StatusCode
execute()
override;
53 Gaudi::Property<int>
m_leakSize{
this,
"LeakSize", 10,
"Number of longs to be leaked just once"};
56 Gaudi::Property<bool>
m_leakInInit{
this,
"LeakInInit",
false,
"Where it will leak: initialize or execute(default)"};
Define macros for attributes used to control the static checker.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
static long **m_pointers ATLAS_THREAD_SAFE
long * stillReachableFct(long **array)
void leakAll()
this one's definitely lost
Gaudi::Property< int > m_leakSize
Property to setup the size of the leak.
long * possibleLostFct(long **array)
this one's possible lost
Gaudi::Property< bool > m_leakInInit
Property to setup the location of the leak, in initialize (true) or execute (false)
long * indirectlyLostFct(long **array)
this one's indirectly lost
long * definitelyLostFct(long **array)
this one's definitely lost
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor:
virtual StatusCode execute() override
virtual StatusCode initialize() override
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.