9#ifndef EVENT_LOOP__ALGORITHM_MEMORY_WRAPPER_H
10#define EVENT_LOOP__ALGORITHM_MEMORY_WRAPPER_H
69 virtual std::string_view
getName ()
const override;
71 virtual bool hasName (
const std::string& name)
const override;
73 virtual std::unique_ptr<IAlgorithmWrapper>
makeClone()
const override;
virtual StatusCode postExecute() override
call postExecute on the algorithm
StatusCode recordPostMemory()
std::unique_ptr< IAlgorithmWrapper > m_algorithm
the actual algorithm
std::vector< Long_t > m_mem_resident
the Memory Consumption for different calls
virtual std::unique_ptr< IAlgorithmWrapper > makeClone() const override
make a clone of this algorithm
StatusCode recordPreMemory()
virtual StatusCode finalize() override
call finalize on the algorithm
virtual StatusCode endInputFile() override
call endInputFile on the algorithm
std::chrono::high_resolution_clock clock_type
the clock we use for our Memory
std::vector< Long_t > m_mem_virtual
virtual StatusCode beginInputFile() override
call beginInputFile on the algorithm
virtual StatusCode execute(const EventContext &ctx) override
call execute on the algorithm
AlgorithmMemoryWrapper()
standard default constructor for serialization
void testInvariant() const
test the invariant of this object
virtual Algorithm * getLegacyAlg() override
get the legacy algorithm, if we wrap one
virtual bool hasName(const std::string &name) const override
whether this algorithm has the given name
virtual StatusCode fileExecute() override
call fileExecute on the algorithm
virtual std::string_view getName() const override
a wrapper around a generic algorithm for use within EventLoop
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
all the external components an algorithm needs before initialization (in EventLoop)