Changeset 136879 in webkit


Ignore:
Timestamp:
Dec 6, 2012, 1:20:30 PM (12 years ago)
Author:
fpizlo@apple.com
Message:

Profiler should print a helpful message if you pass the wrong arguments
https://bugs.webkit.org/show_bug.cgi?id=104222

Reviewed by Oliver Hunt.

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

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r136875 r136879  
     12012-12-05  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Profiler should print a helpful message if you pass the wrong arguments
     4        https://bugs.webkit.org/show_bug.cgi?id=104222
     5
     6        Reviewed by Oliver Hunt.
     7
     8        * Scripts/display-profiler-output:
     9
    1102012-12-06  Ojan Vafai  <ojan@chromium.org>
    211
  • trunk/Tools/Scripts/display-profiler-output

    r136804 r136879  
    264264        "\##{bytecode.codeHash}-#{compilationIndex}-#{engine}"
    265265    end
     266end
     267
     268if ARGV.length != 1
     269    $stderr.puts "Usage: display-profiler-output <path to profiler output file>"
     270    $stderr.puts
     271    $stderr.puts "The typical usage pattern for the profiler currently looks something like:"
     272    $stderr.puts
     273    $stderr.puts "Path/To/jsc -p profile.json myprogram.js"
     274    $stderr.puts "display-profiler-output profile.json"
     275    exit 1
    266276end
    267277
Note: See TracChangeset for help on using the changeset viewer.