 |
ATLAS Offline Software
|
Go to the documentation of this file.
38 if (gSystem->GetProcInfo (&pinfo) != 0) {
40 return StatusCode::FAILURE;
44 ANA_MSG_DEBUG (
"starting memory: " << pinfo.fMemResident <<
" " << pinfo.fMemVirtual);
45 return StatusCode::SUCCESS;
56 if (gSystem->GetProcInfo (&pinfo) != 0) {
58 return StatusCode::FAILURE;
62 ANA_MSG_DEBUG (
"finishing memory: " << pinfo.fMemResident <<
" " << pinfo.fMemVirtual);
67 if (!
data.m_jobStats->Branch (
"memIncreaseResident", &incRes)) {
68 ANA_MSG_ERROR (
"Failed to create branch memIncreaseResident");
69 return StatusCode::FAILURE;
72 if (!
data.m_jobStats->Branch (
"memIncreaseVirtual", &incVirt)) {
74 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
91 const Double_t resLeakPerEv =
92 (
static_cast< Double_t
> (resLeak) /
95 const Double_t virtLeakPerEv =
96 (
static_cast< Double_t
> (virtLeak) /
99 ANA_MSG_INFO (
" - resident: " << resLeakPerEv <<
" kB/event ("
100 << resLeak <<
" kB total)");
101 ANA_MSG_INFO (
" - virtual : " << virtLeakPerEv <<
" kB/event ("
102 << virtLeak <<
" kB total)");
113 return StatusCode::FAILURE;
121 return StatusCode::SUCCESS;
131 throw std::logic_error (
"Function called at incorrect time");
144 throw std::logic_error (
"Function called at incorrect time");
Long_t m_initMemVirtual
Amount of virtual memory used after initialisation in kB.
char data[hepevt_bytes_allocation_ATLAS]
virtual StatusCode onWorkerEnd(ModuleData &data) override
action at the end of the worker job
Gaudi::Property< bool > failOnLeak
the data the EventLoop core classes are sharing with the Module implementation
Long_t memIncreaseVirtual() const
Virtual memory leak/increase during the job.
Long_t memIncreaseResident() const
Resident memory leak/increase during the job.
Long_t m_initMemResident
Amount of resident memory used after initialisation in kB.
Long_t m_finMemVirtual
Amount of virtual memory used after finalisation in kB.
Gaudi::Property< int > perEvVirtualLimit
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode postFinalize(ModuleData &data) override
actions after algorithms have been finalized
This module defines the arguments passed from the BATCH driver to the BATCH worker.
uint64_t m_skippedEvents
number of skipped events
Gaudi::Property< int > absVirtualLimit
Long_t m_finMemResident
Amount of resident memory used after finalisation in kB.
Gaudi::Property< int > absResidentLimit
virtual StatusCode postFirstEvent(ModuleData &data) override
action after processing first event
Gaudi::Property< int > perEvResidentLimit