lib/mini_profiler/timer_struct/page.rb in rack-mini-profiler-2.0.4 vs lib/mini_profiler/timer_struct/page.rb in rack-mini-profiler-2.1.0
- old
+ new
@@ -37,11 +37,14 @@
has_duplicate_sql_timings: false,
executed_readers: 0,
executed_scalars: 0,
executed_non_queries: 0,
custom_timing_names: [],
- custom_timing_stats: {}
+ custom_timing_stats: {},
+ custom_fields: {}
)
+ self[:request_method] = env['REQUEST_METHOD']
+ self[:request_path] = env['PATH_INFO']
name = "#{env['REQUEST_METHOD']} http://#{env['SERVER_NAME']}:#{env['SERVER_PORT']}#{env['SCRIPT_NAME']}#{env['PATH_INFO']}"
self[:root] = TimerStruct::Request.createRoot(name, self)
end
def name