diff --git a/lib/mini_profiler/profiler.rb b/lib/mini_profiler/profiler.rb index 96d518d7..99eb472f 100644 --- a/lib/mini_profiler/profiler.rb +++ b/lib/mini_profiler/profiler.rb @@ -382,9 +382,13 @@ def call(env) end elsif path == '/rack-mini-profiler/requests' blank_page_html = <<~HTML + -
- + +-This is the help menu of the rack-mini-profiler gem, append the following to your query string for more options: - - #{make_link "help", env} : display this screen - #{make_link "env", env} : display the rack environment - #{make_link "skip", env} : skip mini profiler for this request - #{make_link "no-backtrace", env} #{"(*) " if client_settings.backtrace_none?}: don't collect stack traces from all the SQL executed (sticky, use pp=normal-backtrace to enable) - #{make_link "normal-backtrace", env} #{"(*) " if client_settings.backtrace_default?}: collect stack traces from all the SQL executed and filter normally - #{make_link "full-backtrace", env} #{"(*) " if client_settings.backtrace_full?}: enable full backtraces for SQL executed (use pp=normal-backtrace to disable) - #{make_link "disable", env} : disable profiling for this session - #{make_link "enable", env} : enable profiling for this session (if previously disabled) - #{make_link "profile-gc", env} : perform gc profiling on this request, analyzes ObjectSpace generated by request - #{make_link "profile-memory", env} : requires the memory_profiler gem, new location based report - #{make_link "flamegraph", env} : a graph representing sampled activity (requires the stackprof gem). - #{make_link "async-flamegraph", env} : store flamegraph data for this page and all its AJAX requests. Flamegraph links will be available in the mini-profiler UI (requires the stackprof gem). - #{make_link "flamegraph&flamegraph_sample_rate=1", env}: creates a flamegraph with the specified sample rate (in ms). Overrides value set in config - #{make_link "flamegraph&flamegraph_mode=cpu", env}: creates a flamegraph with the specified mode (one of cpu, wall, object, or custom). Overrides value set in config - #{make_link "flamegraph_embed", env} : a graph representing sampled activity (requires the stackprof gem), embedded resources for use on an intranet. - #{make_link "trace-exceptions", env} : will return all the spots where your application raises exceptions - #{make_link "analyze-memory", env} : will perform basic memory analysis of heap -- - -" + html = <<~HTML + + + +
+ This is the help menu of the rack-mini-profiler gem, append the following to your query string for more options: + + #{make_link "help", env} : display this screen + #{make_link "env", env} : display the rack environment + #{make_link "skip", env} : skip mini profiler for this request + #{make_link "no-backtrace", env} #{"(*) " if client_settings.backtrace_none?}: don't collect stack traces from all the SQL executed (sticky, use pp=normal-backtrace to enable) + #{make_link "normal-backtrace", env} #{"(*) " if client_settings.backtrace_default?}: collect stack traces from all the SQL executed and filter normally + #{make_link "full-backtrace", env} #{"(*) " if client_settings.backtrace_full?}: enable full backtraces for SQL executed (use pp=normal-backtrace to disable) + #{make_link "disable", env} : disable profiling for this session + #{make_link "enable", env} : enable profiling for this session (if previously disabled) + #{make_link "profile-gc", env} : perform gc profiling on this request, analyzes ObjectSpace generated by request + #{make_link "profile-memory", env} : requires the memory_profiler gem, new location based report + #{make_link "flamegraph", env} : a graph representing sampled activity (requires the stackprof gem). + #{make_link "async-flamegraph", env} : store flamegraph data for this page and all its AJAX requests. Flamegraph links will be available in the mini-profiler UI (requires the stackprof gem). + #{make_link "flamegraph&flamegraph_sample_rate=1", env}: creates a flamegraph with the specified sample rate (in ms). Overrides value set in config + #{make_link "flamegraph&flamegraph_mode=cpu", env}: creates a flamegraph with the specified mode (one of cpu, wall, object, or custom). Overrides value set in config + #{make_link "flamegraph_embed", env} : a graph representing sampled activity (requires the stackprof gem), embedded resources for use on an intranet. + #{make_link "trace-exceptions", env} : will return all the spots where your application raises exceptions + #{make_link "analyze-memory", env} : will perform basic memory analysis of heap ++ + + HTML - [200, headers, [body]] + [200, headers, [html]] end def flamegraph(graph, path) @@ -685,6 +695,7 @@ def flamegraph(graph, path) +