ATLAS Offline Software
Loading...
Searching...
No Matches
PerfMonTestMallocAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// PerfMonTestMallocAlg.h
6// Header file for class PerfMonTest::MallocAlg
7// Author: S.Binet<binet@cern.ch>
9#ifndef PERFMONTESTS_PERFMONTESTMALLOCALG_H
10#define PERFMONTESTS_PERFMONTESTMALLOCALG_H
11
12// STL includes
13#include <string>
14
15
16// FrameWork includes
18
19// Forward declaration
20
21namespace PerfMonTest {
22
23class MallocAlg : public AthAlgorithm
24{
25
27 // Public methods:
29 public:
31
32 virtual StatusCode execute() override;
33
34 private:
35
36 virtual void isUsed(const void*) {}
37
39 Gaudi::Property<unsigned int> m_evtNbr{this, "EvtNbr", 10, "event number at which to actually do stuff"};
40
42 unsigned int m_currentEvtNbr{0};
43
45 Gaudi::Property<bool> m_useStdVector{this, "UseStdVector", false, "switch between using a C-array and a std::vector"};
46
47};
48
49} //> end namespace PerfMonTest
50
51#endif //> PERFMONTESTS_PERFMONTESTMALLOCALG_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual void isUsed(const void *)
unsigned int m_currentEvtNbr
current event number
Gaudi::Property< bool > m_useStdVector
switch between using a C-array and a std::vector
virtual StatusCode execute() override
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< unsigned int > m_evtNbr
event number at which to actually do stuff
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.