<% unless @custom_params.empty? %> <% end %> <% unless @request_params.empty? %> <% end %>
URL: <%= @sample.params[:uri]%>
Controller: <%= @sample_controller_name%>
Action: <%= @sample_action_name%>
Start Time: <%= format_timestamp(@sample.start_time) %>
Duration: <%= colorize(@sample.duration, 1, 2) %> ms
CPU Burn: <%= to_ms(@sample.params[:cpu_time]) if @sample.params[:cpu_time] %> ms
Custom Params: <% @custom_params.each do |k,v| %> <%= h k %>: <%=h v%>
<% end %>
HTTP Params: <%= @request_params.length %>...

<% if @sample.profile %> <%= profile_table(@sample.profile) %> <% else %>
<%= show_view_link 'Summary', 'show_sample_summary' %> <%= show_view_link 'Details', 'show_sample_detail' %> <%= show_view_link 'SQL', 'show_sample_sql' %>

<%= %w[show_sample_summary show_sample_sql show_sample_detail].collect do |p| options = {:align => 'center', :id => p} options[:style] = 'display: none' unless @req.path.include?(p) content_tag('div', render(:partial => p), options) end.join(' ') %> <% end %>