Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: tools/tickprocessor.py

Issue 28022: Only account for actual time spend in call path calculation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/tickprocessor.py
===================================================================
--- tools/tickprocessor.py (revision 1335)
+++ tools/tickprocessor.py (working copy)
@@ -386,9 +386,15 @@
total_stacks += count
all_stacks_items = all_stacks.items();
all_stacks_items.sort(key = itemgetter(1), reverse=True)
+ missing_percentage = (self.total_number_of_ticks - total_stacks) * 100.0 / self.total_number_of_ticks
+ print(' %(ticks)5d %(total)5.1f%% <no call path information>' % {
+ 'ticks' : self.total_number_of_ticks - total_stacks,
+ 'total' : missing_percentage
+ })
for stack, count in all_stacks_items:
- total_percentage = count * 100.0 / total_stacks
- print(' %(total)5.1f%% %(call_path)s' % {
+ total_percentage = count * 100.0 / self.total_number_of_ticks
+ print(' %(ticks)5d %(total)5.1f%% %(call_path)s' % {
+ 'ticks' : count,
'total' : total_percentage,
'call_path' : stack[0] + ' <- ' + stack[1]
})
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698