Belle II Software  release-08-01-10
ProfileInfo Class Reference

Store execution time and memory usage. More...

#include <ProfileInfo.h>

Inheritance diagram for ProfileInfo:
Collaboration diagram for ProfileInfo:

Public Member Functions

 ProfileInfo (unsigned long virtualMemory=0, unsigned long rssMemory=0, double timeInSec=0)
 Constructor. More...
 
void set (double timeOffset=0)
 Obtain the current profile values.
 
unsigned long getVirtualMemory () const
 Virtual Memory size getter. More...
 
unsigned long getRssMemory () const
 Rss Memory size getter. More...
 
double getTimeInSec () const
 Time getter. More...
 

Private Member Functions

 ClassDef (ProfileInfo, 2)
 Store execution time and memory usage.
 

Private Attributes

unsigned long m_virtualMemory
 Virtual Memory size in kB.
 
unsigned long m_rssMemory
 Resident Memory size in kB.
 
double m_timeInSec
 Time used by this process in seconds.
 

Detailed Description

Store execution time and memory usage.

Class for execution time and memory usage information.

Definition at line 22 of file ProfileInfo.h.

Constructor & Destructor Documentation

◆ ProfileInfo()

ProfileInfo ( unsigned long  virtualMemory = 0,
unsigned long  rssMemory = 0,
double  timeInSec = 0 
)
inline

Constructor.

Initializes meta data of event with Nulls.

Definition at line 29 of file ProfileInfo.h.

30  : m_virtualMemory(virtualMemory), m_rssMemory(rssMemory), m_timeInSec(timeInSec) {}
double m_timeInSec
Time used by this process in seconds.
Definition: ProfileInfo.h:75
unsigned long m_rssMemory
Resident Memory size in kB.
Definition: ProfileInfo.h:71
unsigned long m_virtualMemory
Virtual Memory size in kB.
Definition: ProfileInfo.h:67

Member Function Documentation

◆ getRssMemory()

unsigned long getRssMemory ( ) const
inline

Rss Memory size getter.

Returns
The Rss memory size in kB.

Definition at line 49 of file ProfileInfo.h.

◆ getTimeInSec()

double getTimeInSec ( ) const
inline

Time getter.

Returns
The time in seconds.

Definition at line 58 of file ProfileInfo.h.

◆ getVirtualMemory()

unsigned long getVirtualMemory ( ) const
inline

Virtual Memory size getter.

Returns
The virtual memory size in kB.

Definition at line 40 of file ProfileInfo.h.


The documentation for this class was generated from the following files: