Skip to content

Commit

Permalink
Merge pull request Khan#6 from darktable/master
Browse files Browse the repository at this point in the history
Added link to Appstats page to the drop-down panel.
  • Loading branch information
kamens committed Jun 28, 2011
2 parents af69471 + c0f7491 commit 547ec05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def calc_appstats_results(middleware):

dict_requests = {}

appstats_key = long(middleware.recorder.start_timestamp * 1000)

for trace in middleware.recorder.traces:
total_call_count += 1
total_time += trace.duration_milliseconds()
Expand Down Expand Up @@ -225,6 +227,7 @@ def calc_appstats_results(middleware):
"calls": calls,
"service_totals": service_totals,
"likely_dupes": likely_dupes,
"appstats_key": appstats_key,
}

return None
Expand Down
4 changes: 2 additions & 2 deletions static/js/template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</div>
<div class="date_and_share">
<span class="date">${s_dt}</span>
-
<a class="share" href="/gae_mini_profiler/shared?request_id=${encodeURIComponent(request_id)}">Share</a>
- <a class="share" href="/gae_mini_profiler/shared?request_id=${encodeURIComponent(request_id)}">Share</a>
- <a class="share" target="_appstats" href="/_ah/stats/details?time=${appstats_results.appstats_key}">Appstats</a>
</div>

<div class="expand">
Expand Down

0 comments on commit 547ec05

Please sign in to comment.