Module: Process

Defined in:
lib/test_prof/core.rb

Overview

Add an alias for Process.clock_gettime “reserved” for TestProf (in case some other tool would like to patch it)

Instance Method Summary collapse

Instance Method Details

#singleton_method_added(method_name) ⇒ Object



19
20
21
22
23
# File 'lib/test_prof/core.rb', line 19

def singleton_method_added(method_name)
  return super unless method_name == :clock_gettime_without_mock

  define_method(:clock_gettime_for_test_prof) { |*args| clock_gettime_without_mock(*args) }
end