Reviewers: iposva,

Description:
Add ticks to the profiler output.


Please review this at http://codereview.chromium.org/24022

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     tools/tickprocessor.py


Index: tools/tickprocessor.py
===================================================================
--- tools/tickprocessor.py      (revision 1266)
+++ tools/tickprocessor.py      (working copy)
@@ -279,7 +279,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):
      number_of_accounted_ticks = self.total_number_of_ticks -  
self.unaccounted_number_of_ticks
@@ -292,7 +292,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