Commit | Line | Data |
---|---|---|
1 | -module(beam_stats). | |
2 | ||
3 | -include("include/beam_stats.hrl"). | |
4 | ||
5 | -export_type( | |
6 | [ t/0 | |
7 | ]). | |
8 | ||
9 | -export( | |
10 | [ collect/0 | |
11 | ]). | |
12 | ||
13 | -define(T, #?MODULE). | |
14 | ||
15 | -type t() :: | |
16 | ?T{}. | |
17 | ||
18 | -spec collect() -> | |
19 | t(). | |
20 | collect() -> | |
21 | ?T | |
22 | { timestamp = os:timestamp() | |
23 | , node_id = erlang:node() | |
24 | , memory = erlang:memory() | |
25 | }. |