module GrapeLogging::Timings
Public Instance Methods
Source
# File lib/grape_logging/timings.rb, line 17 def append_db_runtime(event) self.db_runtime += event.duration end
Source
# File lib/grape_logging/timings.rb, line 9 def db_runtime Thread.current[:grape_db_runtime] ||= 0 end
Source
# File lib/grape_logging/timings.rb, line 5 def db_runtime=(value) Thread.current[:grape_db_runtime] = value end
Source
# File lib/grape_logging/timings.rb, line 13 def reset_db_runtime self.db_runtime = 0 end