14#include "Gaudi/Property.h"
28 for ( std::list<Leak*>::iterator i =
m_leaks.begin(), iEnd =
m_leaks.end();
44 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
56 for (
int ileak = 0; ileak <
m_nbrLeaks; ++ileak) {
59 for ( std::size_t i = 0; i !=
static_cast<std::size_t
>(
m_leakSize); ++i ) {
60 leak->
m_data.push_back( i );
66 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
ServiceHandle< StoreGateSvc > & evtStore()
virtual StatusCode initialize() override
virtual StatusCode execute() override
Gaudi::Property< int > m_nbrLeaks
nbr of Leak objects
virtual ~LeakyAlg()
Destructor:
std::list< Leak * > m_leaks
container to hold the leaked objects
Gaudi::Property< int > m_leakSize
Property to setup the size of the leak.
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
std::vector< int > m_data