Commit | Line | Data |
---|---|---|
aa4143aa SK |
1 | -module(beam_stats_source). |
2 | ||
3 | -export( | |
140077ce SK |
4 | [ erlang_is_process_alive/1 |
5 | , erlang_memory/0 | |
aa4143aa SK |
6 | , erlang_node/0 |
7 | , erlang_process_info/2 | |
8 | , erlang_processes/0 | |
9 | , erlang_registered/0 | |
10 | , erlang_statistics/1 | |
11 | , erlang_system_info/1 | |
12 | , ets_all/0 | |
13 | , ets_info/2 | |
14 | , os_timestamp/0 | |
15 | ]). | |
16 | ||
140077ce SK |
17 | erlang_is_process_alive(Pid) -> |
18 | erlang:is_process_alive(Pid). | |
19 | ||
aa4143aa SK |
20 | erlang_memory() -> |
21 | erlang:memory(). | |
22 | ||
23 | erlang_node() -> | |
24 | erlang:node(). | |
25 | ||
26 | erlang_process_info(Pid, Key) -> | |
27 | erlang:process_info(Pid, Key). | |
28 | ||
29 | erlang_processes() -> | |
30 | erlang:processes(). | |
31 | ||
32 | erlang_registered() -> | |
33 | erlang:registered(). | |
34 | ||
35 | erlang_statistics(Key) -> | |
36 | erlang:statistics(Key). | |
37 | ||
38 | erlang_system_info(Key) -> | |
39 | erlang:system_info(Key). | |
40 | ||
41 | ets_all() -> | |
42 | ets:all(). | |
43 | ||
44 | ets_info(Table, Key) -> | |
45 | ets:info(Table, Key). | |
46 | ||
47 | os_timestamp() -> | |
48 | os:timestamp(). |