ATLAS Offline Software
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 
21 namespace PerfMonTest {
22 
23 class 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
PerfMonTest::MallocAlg::m_currentEvtNbr
unsigned int m_currentEvtNbr
current event number
Definition: PerfMonTestMallocAlg.h:42
PerfMonTest::MallocAlg::execute
virtual StatusCode execute() override
Definition: PerfMonTestMallocAlg.cxx:27
AthAlgorithm.h
PerfMonTest::MallocAlg::isUsed
virtual void isUsed(const void *)
Definition: PerfMonTestMallocAlg.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PerfMonTest::MallocAlg::m_evtNbr
Gaudi::Property< unsigned int > m_evtNbr
event number at which to actually do stuff
Definition: PerfMonTestMallocAlg.h:39
PerfMonTest
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
Definition: Control/PerformanceMonitoring/PerfMonTests/src/Hit.h:7
AthAlgorithm
Definition: AthAlgorithm.h:47
PerfMonTest::MallocAlg::m_useStdVector
Gaudi::Property< bool > m_useStdVector
switch between using a C-array and a std::vector
Definition: PerfMonTestMallocAlg.h:45
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
PerfMonTest::MallocAlg
Definition: PerfMonTestMallocAlg.h:24