blob: 996409f53f14e3ccb3afec3c33c79daeadf35799 [file] [log] [blame]
-define(COUNTER_TABLE, counters).
-define(GAUGE_TABLE, gauges).
-define(HISTOGRAM_TABLE, histograms).
-define(METER_TABLE, meters).
-define(HISTORY_TABLE, histories).
-define(DEFAULT_LIMIT, 5).
-define(DEFAULT_SIZE, 5000).
-define(DEFAULT_ALPHA, 1).
-define(DEFAULT_INTERVAL, 5000).
-define(DEFAULT_SAMPLE_TYPE, uniform).
-record(uniform, {
size = 5000,
n = 1,
reservoir = dict:new()
}).
-record(exdec, {
start = 0,
next = 0,
alpha = 1,
size = 5000,
reservoir = []
}).
-record(none, {
size = 5000,
reservoir = []
}).
-define(SYSTEM_INFO, [
allocated_areas,
allocator,
alloc_util_allocators,
build_type,
c_compiler_used,
check_io,
compat_rel,
cpu_topology,
creation,
debug_compiled,
dist,
dist_ctrl,
driver_version,
elib_malloc,
dist_buf_busy_limit,
%fullsweep_after, % included in garbage_collection
garbage_collection,
global_heaps_size,
heap_sizes,
heap_type,
info,
kernel_poll,
loaded,
logical_processors,
logical_processors_available,
logical_processors_online,
machine,
%min_heap_size, % included in garbage_collection
%min_bin_vheap_size, % included in garbage_collection
modified_timing_level,
multi_scheduling,
multi_scheduling_blockers,
otp_release,
process_count,
process_limit,
scheduler_bind_type,
scheduler_bindings,
scheduler_id,
schedulers,
schedulers_online,
smp_support,
system_version,
system_architecture,
threads,
thread_pool_size,
trace_control_word,
update_cpu_info,
version,
wordsize
]).
-define(STATISTICS, [
context_switches,
%exact_reductions, % use reductions instead
garbage_collection,
io,
reductions,
run_queue,
runtime,
wall_clock
]).
-define(PROCESS_INFO, [
backtrace,
binary,
catchlevel,
current_function,
%dictionary,
error_handler,
garbage_collection,
group_leader,
heap_size,
initial_call,
links,
last_calls,
memory,
%message_binary,
message_queue_len,
messages,
min_heap_size,
min_bin_vheap_size,
monitored_by,
monitors,
priority,
reductions,
registered_name,
sequential_trace_token,
stack_size,
status,
suspending,
total_heap_size,
trace,
trap_exit
]).
-define(SOCKET_OPTS, [
active,
broadcast,
delay_send,
dontroute,
exit_on_close,
header,
keepalive,
nodelay,
packet,
packet_size,
read_packets,
recbuf,
reuseaddr,
send_timeout,
send_timeout_close,
sndbuf,
priority,
tos
]).