gitlab-org--gitlab-foss/spec/lib/gitlab/metrics/subscribers
Yorick Peterse 1b077d2d81 Use custom code for instrumenting method calls
The use of ActiveSupport would slow down instrumented method calls by
about 180x due to:

1. ActiveSupport itself not being the fastest thing on the planet
2. caller_locations() having quite some overhead

The use of caller_locations() has been removed because it's not _that_
useful since we already know the full namespace of receivers and the
names of the called methods.

The use of ActiveSupport has been replaced with some custom code that's
generated using eval() (which can be quite a bit faster than using
define_method).

This new setup results in instrumented methods only being about 35-40x
slower (compared to non instrumented methods).
2015-12-17 17:25:48 +01:00
..
action_view_spec.rb Storing of application metrics in InfluxDB 2015-12-17 17:25:48 +01:00
active_record_spec.rb Storing of application metrics in InfluxDB 2015-12-17 17:25:48 +01:00