Consolidate data source calls in 1, mockable, module.
[beam_stats.git] / src / beam_stats_source.erl
CommitLineData
aa4143aa
SK
1-module(beam_stats_source).
2
3-export(
4 [ erlang_memory/0
5 , erlang_node/0
6 , erlang_process_info/2
7 , erlang_processes/0
8 , erlang_registered/0
9 , erlang_statistics/1
10 , erlang_system_info/1
11 , ets_all/0
12 , ets_info/2
13 , os_timestamp/0
14 ]).
15
16erlang_memory() ->
17 erlang:memory().
18
19erlang_node() ->
20 erlang:node().
21
22erlang_process_info(Pid, Key) ->
23 erlang:process_info(Pid, Key).
24
25erlang_processes() ->
26 erlang:processes().
27
28erlang_registered() ->
29 erlang:registered().
30
31erlang_statistics(Key) ->
32 erlang:statistics(Key).
33
34erlang_system_info(Key) ->
35 erlang:system_info(Key).
36
37ets_all() ->
38 ets:all().
39
40ets_info(Table, Key) ->
41 ets:info(Table, Key).
42
43os_timestamp() ->
44 os:timestamp().
This page took 0.039316 seconds and 4 git commands to generate.