Skip to content

Instantly share code, notes, and snippets.

@chendo
Created April 18, 2012 06:18
Show Gist options
  • Save chendo/2411426 to your computer and use it in GitHub Desktop.
Save chendo/2411426 to your computer and use it in GitHub Desktop.
Super useful NewRelic custom view to look at view performance
You want to look at the top entries in the next two tables to reduce overall view rendering time. Cache or optimise.
{% line_chart regexp:'View/.*/Partial' title:'Total partial time' value:total_value %}
{% line_chart regexp:'View/.*/Rendering' title:'Total view render time' value:total_value %}
<hr />
{% line_chart regexp:'View/.*/Partial' title:'Slowest Partial' value:average_response_time %}
{% line_chart regexp:'View/.*/Rendering' title:'Slowest View Render' value:average_response_time %}
<hr />
{% line_chart regexp:'View/.*/Partial' title:'Highest Partial Throughput' value:call_count %}
{% line_chart regexp:'View/.*/Rendering' title:'Highest View Render Throughput' value:call_count %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment