home
/
code
/
beam_stats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collect processes stats.
[beam_stats.git]
/
src
/
beam_stats_state.erl
diff --git
a/src/beam_stats_state.erl
b/src/beam_stats_state.erl
index
7c41fc0
..
ad424d5
100644
(file)
--- a/
src/beam_stats_state.erl
+++ b/
src/beam_stats_state.erl
@@
-1,6
+1,8
@@
-module(beam_stats_state).
-include("include/beam_stats.hrl").
-module(beam_stats_state).
-include("include/beam_stats.hrl").
+-include("include/beam_stats_process.hrl").
+-include("include/beam_stats_processes.hrl").
-export_type(
[ t/0
-export_type(
[ t/0
@@
-14,6
+16,7
@@
-record(snapshots,
{ memory :: [{atom(), non_neg_integer()}]
-record(snapshots,
{ memory :: [{atom(), non_neg_integer()}]
+ , processes :: beam_stats_processes:t()
, run_queue :: non_neg_integer()
, ets :: beam_stats_ets:t()
}).
, run_queue :: non_neg_integer()
, ets :: beam_stats_ets:t()
}).
@@
-83,6
+86,7
@@
export(
, snapshots =
#snapshots
{ memory = Memory
, snapshots =
#snapshots
{ memory = Memory
+ , processes = Processes
, run_queue = RunQueue
, ets = ETS
}
, run_queue = RunQueue
, ets = ETS
}
@@
-114,11
+118,13
@@
export(
, reductions = Reductions
, run_queue = RunQueue
, ets = ETS
, reductions = Reductions
, run_queue = RunQueue
, ets = ETS
+ , processes = Processes
}.
snapshots_new() ->
#snapshots
{ memory = erlang:memory()
}.
snapshots_new() ->
#snapshots
{ memory = erlang:memory()
+ , processes = beam_stats_processes:collect()
, run_queue = erlang:statistics(run_queue)
, ets = beam_stats_ets:collect()
}.
, run_queue = erlang:statistics(run_queue)
, ets = beam_stats_ets:collect()
}.
This page took
0.028923 seconds
and
4
git commands to generate.