aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-06-03 17:17:24 +0200
committerSiri Hansen <[email protected]>2013-06-04 10:53:12 +0200
commit3b42532a099338b5008e60f9d352282da5a90588 (patch)
tree803c43a8e40be4953627e5f98f90337e749da951
parent9e3547d97e1ce3597422d7ee146b2f2f1dabcd11 (diff)
downloadotp-3b42532a099338b5008e60f9d352282da5a90588.tar.gz
otp-3b42532a099338b5008e60f9d352282da5a90588.tar.bz2
otp-3b42532a099338b5008e60f9d352282da5a90588.zip
[observer] Add mbcs_pool to allocator summary in crashdump_viewer
-rw-r--r--lib/observer/src/crashdump_viewer.erl24
1 files changed, 16 insertions, 8 deletions
diff --git a/lib/observer/src/crashdump_viewer.erl b/lib/observer/src/crashdump_viewer.erl
index 49c1eae48d..e7d71c581e 100644
--- a/lib/observer/src/crashdump_viewer.erl
+++ b/lib/observer/src/crashdump_viewer.erl
@@ -2393,19 +2393,19 @@ get_all_vals([Char|Rest],Acc) ->
%% Calculate allocator summary:
%%
%% System totals:
-%% blocks size = sum of mbcs and sbcs blocks size over all allocator
-%% instances of all types
-%% carriers size = sum of mbcs and sbcs carriers size over all allocator
-%% instances of all types
+%% blocks size = sum of mbcs, mbcs_pool and sbcs blocks size over
+%% all allocator instances of all types
+%% carriers size = sum of mbcs, mbcs_pool and sbcs carriers size over
+%% all allocator instances of all types
%%
%% I any allocator except sbmbc_alloc has "option e: false" then don't
%% present system totals.
%%
%% For each allocator type:
-%% blocks size = sum of sbmbcs, mbcs and sbcs blocks size over all
-%% allocator instances of this type
-%% carriers size = sum of sbmbcs, mbcs and sbcs carriers size over all
-%% allocator instances of this type
+%% blocks size = sum of sbmbcs, mbcs, mbcs_pool and sbcs blocks
+%% size over all allocator instances of this type
+%% carriers size = sum of sbmbcs, mbcs, mbcs_pool and sbcs carriers
+%% size over all allocator instances of this type
%% mseg carriers size = sum of mbcs and sbcs mseg carriers size over all
%% allocator instances of this type
%%
@@ -2419,28 +2419,36 @@ get_all_vals([Char|Rest],Acc) ->
-define(mbcs_mseg_carriers_size,"mbcs mseg carriers size").
-define(sbcs_mseg_carriers_size,"sbcs mseg carriers size").
-define(segments_size,"segments_size").
+-define(mbcs_pool_blocks_size,"mbcs_pool blocks size").
+-define(mbcs_pool_carriers_size,"mbcs_pool carriers size").
-define(type_blocks_size,[?sbmbcs_blocks_size,
?mbcs_blocks_size,
+ ?mbcs_pool_blocks_size,
?sbcs_blocks_size]).
-define(type_carriers_size,[?sbmbcs_carriers_size,
?mbcs_carriers_size,
+ ?mbcs_pool_carriers_size,
?sbcs_carriers_size]).
-define(type_mseg_carriers_size,[?mbcs_mseg_carriers_size,
?sbcs_mseg_carriers_size]).
-define(total_blocks_size,[?mbcs_blocks_size,
+ ?mbcs_pool_blocks_size,
?sbcs_blocks_size]).
-define(total_carriers_size,[?mbcs_carriers_size,
+ ?mbcs_pool_carriers_size,
?sbcs_carriers_size]).
-define(total_mseg_carriers_size,[?mbcs_mseg_carriers_size,
?sbcs_mseg_carriers_size]).
-define(interesting_allocator_info, [?sbmbcs_blocks_size,
?mbcs_blocks_size,
+ ?mbcs_pool_blocks_size,
?sbcs_blocks_size,
?sbmbcs_carriers_size,
?mbcs_carriers_size,
?sbcs_carriers_size,
?mbcs_mseg_carriers_size,
+ ?mbcs_pool_carriers_size,
?sbcs_mseg_carriers_size,
?segments_size]).
-define(mseg_alloc,"mseg_alloc").