diff options
| author | Dave McLain | 2011-04-26 14:39:01 -0500 | 
|---|---|---|
| committer | Dave McLain | 2011-04-26 14:46:07 -0500 | 
| commit | cf82001f197288c9816c2d7adcc09c08205cfa42 (patch) | |
| tree | 1f62e181c376c63e0e7b895db6ecf764fe8da673 /debug_toolbar/templates | |
| parent | a3e8ce8eb1c4e2d1482a22d3a7e0dba7f4ff3201 (diff) | |
| download | django-debug-toolbar-cf82001f197288c9816c2d7adcc09c08205cfa42.tar.bz2 | |
Integrating line_profiler
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/profiling.html | 19 | 
1 files changed, 14 insertions, 5 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html index ebc91cc..ef42230 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/profiling.html +++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html @@ -4,10 +4,10 @@  	<thead>  		<tr>  			<th>{% trans "Call" %}</th> -			<th>{% trans "TotTime" %}</th> -			<th>{% trans "Per" %}</th>  			<th>{% trans "CumTime" %}</th>  			<th>{% trans "Per" %}</th> +			<th>{% trans "TotTime" %}</th> +			<th>{% trans "Per" %}</th>  			<th>{% trans "Count" %}</th>  		</tr>  	</thead> @@ -25,12 +25,21 @@  						<span class="stack">{{ call.func_std_string }}</span>  					</div>  				</td> -				<td>{{ call.tottime|floatformat:3 }}</td> -				<td>{{ call.tottime_per_call|floatformat:3 }}</td>  				<td>{{ call.cumtime|floatformat:3 }}</td>  				<td>{{ call.cumtime_per_call|floatformat:3 }}</td> +				<td>{{ call.tottime|floatformat:3 }}</td> +				<td>{{ call.tottime_per_call|floatformat:3 }}</td>  				<td>{{ call.count }}</td>  			</tr> +			{% if call.line_stats_text %} +			<tr> +				<td colspan='6'> +					<pre style='font-family:Courier, monospace'> +						{{ call.line_stats_text }} +					</pre> +				</td> +			</tr> +			{% endif %}  		{% endfor %}  	</tbody> -</table> +</table>
\ No newline at end of file  | 
