ATLAS Offline Software
Loading...
Searching...
No Matches
PerfUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef _PERFUTILS_H_
6#define _PERFUTILS_H_
7
8// This is a collection of performance utilities used to
9// benchmark the GeoModel. Currently it includes a routine
10// to fetch the current memory consumption in kilobytes and
11// a routine to fetch the current CPU consumption in jiffies.
12//
13// Joe Boudreau March 2005.
14
15class PerfUtils {
16public:
17 // Get the current Memory Usage (kbytes);
18 static int getMem();
19
20 // Get the current CPU Usage (jiffies= 1/100th of a second):
21 static void getCpu(int& uTime, int& sTime);
22};
23
24#endif
int getCpu()
static int getMem()
Definition PerfUtils.cxx:17