4 ms·
Shameless plug, but I just gave a talk yesterday[1] at the Rails User Group Berlin meetup that covers some techniques + gems for measuring stuff, including exec
by gingerlime 13y ago
Shameless plug, but I just gave a talk yesterday[1] at the Rails User Group Berlin meetup that covers some techniques + gems for measuring stuff, including execution time. Primarily using Statsd/Graphite, but not exclusively. These can be useful even in production, because of the low overhead.
Rails instrumentation in particular allows plugging into controller actions, and things like the nunes gem hooks in even more places. But of course, you can also track timing info around blocks or methods quite easily on a ad-hoc basis.
Lots of this you get 'out-of-the-box' with newrelic (/pro), but this gives you even more flexibility and control.
[1] https://github.com/gingerlime/measure-everything https://github.com/gingerlime/measure-everything