Skip to content

Commit

Permalink
run rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Feb 15, 2024
1 parent 855d854 commit 021b8c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/mini_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def trace_exceptions?

# FIXME this should use profile_parameter and be the same as flamegraph?
def pp_flamegraph?
@query_string.match?(/pp=(async-)?flamegraph/ )
@query_string.match?(/pp=(async-)?flamegraph/)
end

def flamegraph_sample_rate
Expand Down Expand Up @@ -392,8 +392,7 @@ def call(env)
if defined?(StackProf) && StackProf.respond_to?(:run)
# do not sully our profile with mini profiler timings
current.measure = false

sample_rate = query_settings.flamegraph_sample_rate || config.flamegraph_sample_rate
sample_rate = query_settings.flamegraph_sample_rate || config.flamegraph_sample_rate
mode = query_settings.flamegraph_mode || config.flamegraph_mode

ignore_gc_match_data = action_parameters(env)['flamegraph_ignore_gc']
Expand Down Expand Up @@ -474,7 +473,7 @@ def call(env)
page_struct[:user] = user(env)
page_struct[:root].record_time((Process.clock_gettime(Process::CLOCK_MONOTONIC) - start) * 1000)

if flamegraph && query_settings.flamegraph?
if flamegraph && query_settings.flamegraph?
body.close if body.respond_to? :close
return client_settings.handle_cookie(self.flamegraph(flamegraph, path, env))
elsif flamegraph # async-flamegraph
Expand Down

0 comments on commit 021b8c3

Please sign in to comment.