lib/appmap/util.rb in appmap-0.92.1 vs lib/appmap/util.rb in appmap-0.93.0

- old
+ new

@@ -84,10 +84,11 @@ # sanitize_event removes ephemeral values from an event, making # events easier to compare across runs. def sanitize_event(event, &block) event.delete(:thread_id) event.delete(:elapsed) + event.delete(:elapsed_instrumentation) delete_object_id = ->(obj) { (obj || {}).delete(:object_id) } delete_object_id.call(event[:receiver]) delete_object_id.call(event[:return_value]) %i[parameters exceptions message].each do |field| (event[field] || []).each(&delete_object_id) @@ -228,9 +229,13 @@ nil end def ruby_minor_version @ruby_minor_version ||= RUBY_VERSION.split('.')[0..1].join('.').to_f + end + + def gettime + Process.clock_gettime Process::CLOCK_MONOTONIC end end end end