From 2f395fedee38d26b0b9ff2a82751bb9405ee1d94 Mon Sep 17 00:00:00 2001 From: Anthony Molinaro Date: Mon, 10 Oct 2016 20:43:43 +0000 Subject: [PATCH] add a function to get event names --- ChangeLog | 1 + include/mondemand.hrl | 2 ++ src/mondemand.erl | 3 +++ 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index a509a95..b42b8b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Version 6.5.0 (molinaro) * add a call to get vmstats out from the vmstats sampler + * add a call to get all event names Version 6.4.1 (molinaro) * don't crash if http trace endpoint is not set diff --git a/include/mondemand.hrl b/include/mondemand.hrl index fbec297..bf2f120 100644 --- a/include/mondemand.hrl +++ b/include/mondemand.hrl @@ -98,4 +98,6 @@ repeat_count }). +-define (ALL_EVENTS_BINARY, [?MD_ANNOTATION_EVENT, ?MD_LOG_EVENT, ?MD_PERF_EVENT, ?MD_STATS_EVENT, ?MD_TRACE_EVENT]). + -endif. diff --git a/src/mondemand.erl b/src/mondemand.erl index 407e461..75692f2 100644 --- a/src/mondemand.erl +++ b/src/mondemand.erl @@ -69,6 +69,7 @@ reset_stats/0, stats/0, all/0, + all_event_names_as_binary/0, get_lwes_config/0, reload_config/0, current_config/0, @@ -134,6 +135,8 @@ add_sample (ProgId, Key, Context, Value) all () -> mondemand_statdb:all(). +all_event_names_as_binary () -> ?ALL_EVENTS_BINARY. + get_lwes_config () -> mondemand_config:lwes_config().