Belle II Software  release-05-01-25
ProfileInfo.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Kuhr *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <framework/dataobjects/ProfileInfo.h>
12 
13 #include <framework/utilities/Utils.h>
14 #include <framework/gearbox/Unit.h>
15 
16 using namespace Belle2;
17 
18 void ProfileInfo::set(double timeOffset)
19 {
22 
23  m_timeInSec = Utils::getClock() / Unit::s - timeOffset;
24 }
Belle2::Utils::getRssMemoryKB
unsigned long getRssMemoryKB()
Returns the amount of memory the process actually occupies in the physical RAM of the machine.
Definition: Utils.cc:76
Belle2::Unit::s
static const double s
[second]
Definition: Unit.h:105
Belle2::ProfileInfo::m_timeInSec
double m_timeInSec
Time used by this process in seconds.
Definition: ProfileInfo.h:85
Belle2::ProfileInfo::m_rssMemory
unsigned long m_rssMemory
Resident Memory size in kB.
Definition: ProfileInfo.h:81
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Utils::getClock
double getClock()
Return current value of the real-time clock.
Definition: Utils.cc:58
Belle2::ProfileInfo::m_virtualMemory
unsigned long m_virtualMemory
Virtual Memory size in kB.
Definition: ProfileInfo.h:77
Belle2::ProfileInfo::set
void set(double timeOffset=0)
Obtain the current profile values.
Definition: ProfileInfo.cc:18
Belle2::Utils::getVirtualMemoryKB
unsigned long getVirtualMemoryKB()
Returns currently used virtual memory in KB, includes swapped and not occupied memory pages and memor...
Definition: Utils.cc:71