11#ifndef PERFMONTESTS_PERFMONTESTLEAKYALG_H
12#define PERFMONTESTS_PERFMONTESTLEAKYALG_H
22#include "GaudiKernel/ServiceHandle.h"
40 virtual StatusCode
execute(
const EventContext& ctx)
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.
virtual StatusCode initialize() 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.
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
std::vector< int > m_data