gitlab-org--gitlab-foss/spec/lib/gitlab/metrics
Yorick Peterse 905f8d763a
Reduce instrumentation overhead
This reduces the overhead of the method instrumentation code primarily
by reducing the number of method calls. There are also some other small
optimisations such as not casting timing values to Floats (there's no
particular need for this), using Symbols for method call metric names,
and reducing the number of Hash lookups for instrumented methods.

The exact impact depends on the code being executed. For example, for a
method that's only called once the difference won't be very noticeable.
However, for methods that are called many times the difference can be
more significant.

For example, the loading time of a large commit
(nrclark/dummy_project@81ebdea5df)
was reduced from around 19 seconds to around 15 seconds using these
changes.
2016-07-28 16:56:17 +02:00
..
subscribers RailsCache metrics now includes fetch_hit/fetch_miss and read_hit/read_miss info. 2016-07-05 12:28:06 +02:00
delta_spec.rb
instrumentation_spec.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
method_call_spec.rb Track method call times/counts as a single metric 2016-06-17 13:09:55 -04:00
metric_spec.rb
rack_middleware_spec.rb Filter out sensitive parameters of metrics data 2016-06-17 18:14:25 +02:00
sampler_spec.rb Filter out classes without names in the sampler 2016-06-14 18:09:06 +02:00
sidekiq_middleware_spec.rb Add Sidekiq queue duration to transaction metrics. 2016-06-23 13:09:52 +02:00
system_spec.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
transaction_spec.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00