LGTM

On Mon, Feb 23, 2009 at 12:52 PM, <[email protected]> wrote:

> Reviewers: Erik Corry,
>
> Description:
> Only account for actual time spend in call path calculation.
>
> The call path section of the profile now starts with information on the
> percentage of the ticks which does not contain call path information.
>
> Added tick count to the call path part as well.
>
> Please review this at http://codereview.chromium.org/28022
>
> SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
>
> Affected files:
>  M     tools/tickprocessor.py
>
>
> 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]
>       })
>
>
>


-- 
Erik Corry, Software Engineer
Google Denmark ApS.  CVR nr. 28 86 69 84
c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018 Copenhagen K,
Denmark.

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

Reply via email to