⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 195409 in webkit


Ignore:
Timestamp:
Jan 21, 2016, 7:47:31 AM (11 years ago)
Author:
fpizlo@apple.com
Message:

display-profiler-output should be able to display code blocks sorted by machine counts
https://bugs.webkit.org/show_bug.cgi?id=153298

Reviewed by Oliver Hunt.

  • Scripts/display-profiler-output:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r195408 r195409  
     12016-01-21  Filip Pizlo  <fpizlo@apple.com>
     2
     3        display-profiler-output should be able to display code blocks sorted by machine counts
     4        https://bugs.webkit.org/show_bug.cgi?id=153298
     5
     6        Reviewed by Oliver Hunt.
     7
     8        * Scripts/display-profiler-output:
     9
    1102016-01-21  Julien Isorce  <j.isorce@samsung.com>
    211
  • trunk/Tools/Scripts/display-profiler-output

    r195396 r195409  
    536536end
    537537
    538 def summary(mode)
     538def summary(mode, order)
    539539    remaining = screenWidth
    540540   
     
    619619    $bytecodes.sort {
    620620        | a, b |
    621         b.totalMaxTopExecutionCount <=> a.totalMaxTopExecutionCount
     621        case order
     622        when :bytecode
     623            b.totalMaxTopExecutionCount <=> a.totalMaxTopExecutionCount
     624        when :machine
     625            b.totalMaxBottomExecutionCount <=> a.totalMaxBottomExecutionCount
     626        else
     627            raise
     628        end
    622629    }.each {
    623630        | bytecode |
     
    739746        exit 0
    740747    when "summary", "s"
    741         summary(:summary)
     748        summary(:summary, :bytecode)
    742749    when "full", "f"
    743         summary(:full)
     750        if args[0] and (args[0] == "m" or args[0] == "machine")
     751            summary(:full, :machine)
     752        else
     753            summary(:full, :bytecode)
     754        end
    744755    when "source"
    745756        if args.length != 1
Note: See TracChangeset for help on using the changeset viewer.