ATLAS Offline Software
Control
PerformanceMonitoring
PerfMonTests
src
PerfMonTestMallocAlg.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// PerfMonTestMallocAlg.h
8
// Header file for class PerfMonTest::MallocAlg
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef PERFMONTESTS_PERFMONTESTMALLOCALG_H
12
#define PERFMONTESTS_PERFMONTESTMALLOCALG_H
13
14
// STL includes
15
#include <string>
16
17
18
// FrameWork includes
19
#include "
AthenaBaseComps/AthAlgorithm.h
"
20
21
// Forward declaration
22
23
namespace
PerfMonTest
{
24
25
class
MallocAlg
:
public
AthAlgorithm
26
{
27
29
// Public methods:
31
public
:
32
33
// Copy constructor:
34
36
MallocAlg
(
const
std::string&
name
, ISvcLocator* pSvcLocator );
37
39
virtual
~MallocAlg
();
40
41
// Assignment operator:
42
//MallocAlg &operator=(const MallocAlg &alg);
43
44
// Athena algorithm's Hooks
45
virtual
StatusCode
initialize
();
46
virtual
StatusCode
execute
();
47
virtual
StatusCode
finalize
();
48
50
// Const methods:
52
54
// Non-const methods:
56
58
// Private data:
60
private
:
61
62
virtual
void
isUsed
(
const
void
*) {}
63
65
MallocAlg
();
66
68
unsigned
int
m_evtNbr
;
69
71
unsigned
int
m_currentEvtNbr
{0};
72
74
bool
m_useStdVector
;
75
76
};
77
78
// I/O operators
80
82
// Inline methods:
84
85
}
//> end namespace PerfMonTest
86
87
#endif //> PERFMONTESTS_PERFMONTESTMALLOCALG_H
PerfMonTest::MallocAlg::m_currentEvtNbr
unsigned int m_currentEvtNbr
current event number
Definition:
PerfMonTestMallocAlg.h:71
PerfMonTest::MallocAlg::initialize
virtual StatusCode initialize()
Definition:
PerfMonTestMallocAlg.cxx:61
PerfMonTest::MallocAlg::MallocAlg
MallocAlg()
Default constructor:
PerfMonTest::MallocAlg::execute
virtual StatusCode execute()
Definition:
PerfMonTestMallocAlg.cxx:75
PerfMonTest::MallocAlg::m_evtNbr
unsigned int m_evtNbr
event number at which to actually do stuff
Definition:
PerfMonTestMallocAlg.h:68
AthAlgorithm.h
PerfMonTest::MallocAlg::isUsed
virtual void isUsed(const void *)
Definition:
PerfMonTestMallocAlg.h:62
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PerfMonTest::MallocAlg::~MallocAlg
virtual ~MallocAlg()
Destructor:
Definition:
PerfMonTestMallocAlg.cxx:54
PerfMonTest
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
Definition:
Control/PerformanceMonitoring/PerfMonTests/src/Hit.h:7
PerfMonTest::MallocAlg::m_useStdVector
bool m_useStdVector
switch between using a C-array and a std::vector
Definition:
PerfMonTestMallocAlg.h:74
AthAlgorithm
Definition:
AthAlgorithm.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
PerfMonTest::MallocAlg::finalize
virtual StatusCode finalize()
Definition:
PerfMonTestMallocAlg.cxx:68
PerfMonTest::MallocAlg
Definition:
PerfMonTestMallocAlg.h:26
Generated on Sun Dec 22 2024 21:16:06 for ATLAS Offline Software by
1.8.18