File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def trace_exceptions?
7575
7676 # FIXME this should use profile_parameter and be the same as flamegraph?
7777 def pp_flamegraph?
78- @query_string . match? ( /pp=(async-)?flamegraph/ )
78+ @query_string . match? ( /pp=(async-)?flamegraph/ )
7979 end
8080
8181 def flamegraph_sample_rate
@@ -392,8 +392,7 @@ def call(env)
392392 if defined? ( StackProf ) && StackProf . respond_to? ( :run )
393393 # do not sully our profile with mini profiler timings
394394 current . measure = false
395-
396- sample_rate = query_settings . flamegraph_sample_rate || config . flamegraph_sample_rate
395+ sample_rate = query_settings . flamegraph_sample_rate || config . flamegraph_sample_rate
397396 mode = query_settings . flamegraph_mode || config . flamegraph_mode
398397
399398 ignore_gc_match_data = action_parameters ( env ) [ 'flamegraph_ignore_gc' ]
@@ -474,7 +473,7 @@ def call(env)
474473 page_struct [ :user ] = user ( env )
475474 page_struct [ :root ] . record_time ( ( Process . clock_gettime ( Process ::CLOCK_MONOTONIC ) - start ) * 1000 )
476475
477- if flamegraph && query_settings . flamegraph?
476+ if flamegraph && query_settings . flamegraph?
478477 body . close if body . respond_to? :close
479478 return client_settings . handle_cookie ( self . flamegraph ( flamegraph , path , env ) )
480479 elsif flamegraph # async-flamegraph
You can’t perform that action at this time.
0 commit comments