summaryrefslogtreecommitdiffstats
path: root/SystemInformation.hxx.in
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2015-06-03 18:25:01 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-04 13:22:48 (GMT)
commit6cafd8ed0bc8458ba2c6eb0e792c894cf4f37f90 (patch)
treeb7f546925df589e72e6f23e31c376d641ad185f3 /SystemInformation.hxx.in
parentee71b75133d3e515172b5fbe3dccf7d3906f5a19 (diff)
downloadCMake-6cafd8ed0bc8458ba2c6eb0e792c894cf4f37f90.zip
CMake-6cafd8ed0bc8458ba2c6eb0e792c894cf4f37f90.tar.gz
CMake-6cafd8ed0bc8458ba2c6eb0e792c894cf4f37f90.tar.bz2
KWSys 2015-06-03 (8533a79b)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 8533a79b | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 61e0419f..8533a79b Zack Galbreath (1): 8533a79b SystemInformation: Add GetLoadAverage() method
Diffstat (limited to 'SystemInformation.hxx.in')
-rw-r--r--SystemInformation.hxx.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/SystemInformation.hxx.in b/SystemInformation.hxx.in
index a9fd05d..4acdc4f 100644
--- a/SystemInformation.hxx.in
+++ b/SystemInformation.hxx.in
@@ -130,6 +130,10 @@ public:
// Get system RAM used by this process id in units of KiB.
LongLong GetProcMemoryUsed();
+ // Return the load average of the machine or -0.0 if it cannot
+ // be determined.
+ double GetLoadAverage();
+
// enable/disable stack trace signal handler. In order to
// produce an informative stack trace the application should
// be dynamically linked and compiled with debug symbols.