Commit | Line | Data |
---|---|---|
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 | ||
16 | erlang_memory() -> | |
17 | erlang:memory(). | |
18 | ||
19 | erlang_node() -> | |
20 | erlang:node(). | |
21 | ||
22 | erlang_process_info(Pid, Key) -> | |
23 | erlang:process_info(Pid, Key). | |
24 | ||
25 | erlang_processes() -> | |
26 | erlang:processes(). | |
27 | ||
28 | erlang_registered() -> | |
29 | erlang:registered(). | |
30 | ||
31 | erlang_statistics(Key) -> | |
32 | erlang:statistics(Key). | |
33 | ||
34 | erlang_system_info(Key) -> | |
35 | erlang:system_info(Key). | |
36 | ||
37 | ets_all() -> | |
38 | ets:all(). | |
39 | ||
40 | ets_info(Table, Key) -> | |
41 | ets:info(Table, Key). | |
42 | ||
43 | os_timestamp() -> | |
44 | os:timestamp(). |