rails_server_timings icon indicating copy to clipboard operation
rails_server_timings copied to clipboard

How to add more stats into the value?

Open PikachuEXE opened this issue 8 years ago • 2 comments

Thanks for writing this gem

I only see db & view on the new header now And I want to know if there is a way to add more stats to it (like caching or other stuff)

PikachuEXE avatar Mar 27 '17 09:03 PikachuEXE

It uses the values returned by the ActiveSupport::Notifications Instrumentation API. I think the best overview of that is still Instrument Anything in Rails.

In particular, anything in the ActionController event payload that ends with _runtime will be returned in the header.

dpogue avatar Mar 27 '17 14:03 dpogue

Thanks Maybe worth putting this info in README?

PikachuEXE avatar Mar 28 '17 01:03 PikachuEXE