|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "Gaudi/Property.h"
32 ISvcLocator* pSvcLocator ) :
34 m_stillReachable ( NULL ),
35 m_possibleLost ( NULL ),
36 m_indirectlyLost ( NULL ),
37 m_definitelyLost ( NULL )
46 "Number of longs to be leaked just once" );
49 "Where it will leak: initialize or execute(default)" );
69 if ( !
bool(m_pointers) )
70 m_pointers =
new long* [4];
74 return StatusCode::SUCCESS;
81 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
94 return StatusCode::SUCCESS;
101 const unsigned int maxSize = 256;
102 long **
array =
new long* [maxSize];
103 for (
unsigned int i=0;
i<maxSize; ++
i )
long * indirectlyLostFct(long **array)
this one's indirectly lost
long * stillReachableFct(long **array)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
long **ManyLeaksAlg::m_pointers ATLAS_THREAD_SAFE
long * possibleLostFct(long **array)
this one's possible lost
virtual ~ManyLeaksAlg()
Destructor:
bool m_leakInInit
Property to setup the location of the leak, in initialize (true) or execute (false)
::StatusCode StatusCode
StatusCode definition for legacy code.
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
int m_leakSize
Property to setup the size of the leak.
virtual StatusCode initialize()
ManyLeaksAlg()
Default constructor:
void leakAll()
this one's definitely lost
virtual StatusCode finalize()
long * definitelyLostFct(long **array)
this one's definitely lost
virtual StatusCode execute()