You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ To disable this behavior, use the following config setting:
121
121
122
122
```ruby
123
123
# Do not let rack-mini-profiler disable caching
124
-
Rack::MiniProfiler.config.disable_caching =false# defaults to true
124
+
Rack::MiniProfiler.config.disable_caching =false# defaults to true
125
125
```
126
126
127
127
### Storage
@@ -182,7 +182,9 @@ The available configuration options are:
182
182
* skip_paths - Specifies path list that can be skipped.
183
183
* skip_schema_queries - Whether or not you want to log the queries about the schema of your tables. Default is 'false', 'true' in rails development.
184
184
* auto_inject (default true) - when false the miniprofiler script is not injected in the page
185
-
* backtrace_filter - a regex you can use to filter out unwanted lines from the backtraces
185
+
* backtrace_ignores (default nil) - an array of regexes you can use to filter out unwanted lines from the backtraces
186
+
* backtrace_includes (default nil, or [/^\/?(app|config|lib|test)/] in rails) - an array of regexes you can use to keep lines in the backtrace
187
+
* backtrace_remove (default nil, or Rails.root in rails) - A string or regex to remove part of each line in the backtrace
186
188
* toggle_shortcut (default Alt+P) - a jquery.hotkeys.js-style keyboard shortcut, used to toggle the mini_profiler's visibility. See https://github.com/jeresig/jquery.hotkeys for more info.
187
189
* start_hidden (default false) - Whether or not you want the mini_profiler to be visible when loading a page
188
190
* backtrace_threshold_ms (default zero) - Minimum SQL query elapsed time before a backtrace is recorded. Backtrace recording can take a couple of milliseconds on rubies earlier than 2.0, impacting performance for very small queries.
0 commit comments