11#ifndef PERFMONTESTS_PERFMONTESTLEAKYALG_H
12#define PERFMONTESTS_PERFMONTESTLEAKYALG_H
22#include "GaudiKernel/ServiceHandle.h"
40 virtual StatusCode
execute()
override;
49 Gaudi::Property<int>
m_leakSize{
this,
"LeakSize", 10,
"Size of 'Leak' objects to be leaked each event"};
56 Gaudi::Property<int>
m_nbrLeaks{
this,
"NbrLeaks", 1,
"Number of 'Leak' objects to be leaked each event"};
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
std::vector< int > m_data