aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/include/observer_backend.hrl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-02-26 11:05:51 +0100
committerSiri Hansen <[email protected]>2013-03-04 11:05:33 +0100
commit999e827ed1d9b5c966af2fc7480e57d2b60b7b09 (patch)
tree1e4b6fbfdeb7eed4074661c75566f13946c31e96 /lib/runtime_tools/include/observer_backend.hrl
parent0756a6676d465862056a0fb0969eee827f1a844d (diff)
downloadotp-999e827ed1d9b5c966af2fc7480e57d2b60b7b09.tar.gz
otp-999e827ed1d9b5c966af2fc7480e57d2b60b7b09.tar.bz2
otp-999e827ed1d9b5c966af2fc7480e57d2b60b7b09.zip
[observer] Improve measurement of CPU utilization in etop
Now using scheduler_wall_time instead of runtime/wall_clock to get cpu utilization. The old version could give CPU utilization far beyond 100%. Also, a bug which sometimes gave a badarith when calculating the CPU utilization is corrected.
Diffstat (limited to 'lib/runtime_tools/include/observer_backend.hrl')
-rw-r--r--lib/runtime_tools/include/observer_backend.hrl23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/runtime_tools/include/observer_backend.hrl b/lib/runtime_tools/include/observer_backend.hrl
index 4be9baca5b..91647a4468 100644
--- a/lib/runtime_tools/include/observer_backend.hrl
+++ b/lib/runtime_tools/include/observer_backend.hrl
@@ -1,26 +1,27 @@
-%% ``The contents of this file are subject to the Erlang Public License,
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2002-2013. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
-%% retrieved via the world wide web at http://www.erlang.org/.
-%%
+%% retrieved online at http://www.erlang.org/.
+%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and limitations
%% under the License.
-%%
-%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
-%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
-%% AB. All Rights Reserved.''
-%%
-%% $Id$
+%%
+%% %CopyrightEnd%
%%
-record(etop_info,
{now = {0, 0, 0},
n_procs = 0,
- wall_clock = {0, 0},
- runtime = {0, 0},
+ wall_clock,
+ runtime,
run_queue = 0,
alloc_areas = [],
memi = [{total, 0},