gitlab-org--gitlab-foss/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.rb
instrumentation.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
method_call.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
metric.rb Use clock_gettime for all performance timestamps 2016-06-28 17:51:25 +02:00
rack_middleware.rb Filter out sensitive parameters of metrics data 2016-06-17 18:14:25 +02:00
sampler.rb Filter out classes without names in the sampler 2016-06-14 18:09:06 +02:00
sidekiq_middleware.rb Add Sidekiq queue duration to transaction metrics. 2016-06-23 13:09:52 +02:00
system.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
transaction.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00