home
/
code
/
beam_stats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2 from ibnfirnas/per-ets-table-stats
[beam_stats.git]
/
src
/
beam_stats_state.erl
diff --git
a/src/beam_stats_state.erl
b/src/beam_stats_state.erl
index
f21f231
..
7c41fc0
100644
(file)
--- a/
src/beam_stats_state.erl
+++ b/
src/beam_stats_state.erl
@@
-15,6
+15,7
@@
-record(snapshots,
{ memory :: [{atom(), non_neg_integer()}]
, run_queue :: non_neg_integer()
-record(snapshots,
{ memory :: [{atom(), non_neg_integer()}]
, run_queue :: non_neg_integer()
+ , ets :: beam_stats_ets:t()
}).
-type snapshots() ::
}).
-type snapshots() ::
@@
-83,6
+84,7
@@
export(
#snapshots
{ memory = Memory
, run_queue = RunQueue
#snapshots
{ memory = Memory
, run_queue = RunQueue
+ , ets = ETS
}
, deltas =
#deltas
}
, deltas =
#deltas
@@
-111,12
+113,14
@@
export(
, context_switches = CurrentContextSwitches - PreviousContextSwitches
, reductions = Reductions
, run_queue = RunQueue
, context_switches = CurrentContextSwitches - PreviousContextSwitches
, reductions = Reductions
, run_queue = RunQueue
+ , ets = ETS
}.
snapshots_new() ->
#snapshots
{ memory = erlang:memory()
, run_queue = erlang:statistics(run_queue)
}.
snapshots_new() ->
#snapshots
{ memory = erlang:memory()
, run_queue = erlang:statistics(run_queue)
+ , ets = beam_stats_ets:collect()
}.
deltas_new() ->
}.
deltas_new() ->
This page took
0.030714 seconds
and
4
git commands to generate.