Skip to content

Commit

Permalink
MethodMeter.exceptions now landed in method_meter version 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wnuqui committed Jan 1, 2021
1 parent 65d1bfd commit a5f48a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/runtime_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module RuntimeProfiler
end
end

config_accessor :excepted_methods do
{}
end

class << self
def configure
begin
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime_profiler/profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def unsubscribe_to_event_notifications

def prepare_methods_to_instrument
instrumented_constants.flatten
.each { |constant| MethodMeter.observe(constant) }
.each { |constant| MethodMeter.observe(constant, RuntimeProfiler.excepted_methods) }
end

def save_instrumentation_data
Expand Down

0 comments on commit a5f48a7

Please sign in to comment.