Skip to content

Commit

Permalink
add a function to get event names
Browse files Browse the repository at this point in the history
  • Loading branch information
djnym committed Oct 10, 2016
1 parent c43604e commit 2f395fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions include/mondemand.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 3 additions & 0 deletions src/mondemand.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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().

Expand Down

0 comments on commit 2f395fe

Please sign in to comment.