Author: [email protected]
Date: Thu Feb 19 17:56:08 2009
New Revision: 1323

Modified:
    branches/bleeding_edge/tools/tickprocessor.py

Log:
add ticks to tickprocessor

Modified: branches/bleeding_edge/tools/tickprocessor.py
==============================================================================
--- branches/bleeding_edge/tools/tickprocessor.py       (original)
+++ branches/bleeding_edge/tools/tickprocessor.py       Thu Feb 19 17:56:08 2009
@@ -341,7 +341,7 @@

    def PrintHeader(self, header_title):
      print('\n [%s]:' % header_title)
-    print('   total  nonlib   name')
+    print('   ticks  total  nonlib   name')

    def PrintEntries(self, entries, condition):
      # If ignoring unaccounted ticks don't include these in percentage
@@ -359,7 +359,8 @@
            non_library_percentage = 0
          else:
            non_library_percentage = entry.tick_count * 100.0 /  
number_of_non_library_ticks
-        print('  %(total)5.1f%% %(nonlib)6.1f%%   %(name)s' % {
+        print('  %(ticks)5d  %(total)5.1f%% %(nonlib)6.1f%%  %(name)s' % {
+          'ticks' : entry.tick_count,
            'total' : total_percentage,
            'nonlib' : non_library_percentage,
            'name' : entry.ToString()

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to