Package: ruby-prof Version: 0.5.2-1 Severity: normal
ruby-prof --help says there's a --mode switch. Trying to use that --mode switch doesn't work. I'd like to be able to specify --mode=wall, as --help claims I should: [EMAIL PROTECTED]:~/src/subterfuge/src/main$ ruby-prof --help ruby_prof 0.5.2 Usage: ruby_prof [options] <script.rb> [--extra-options-for-script] Options: -p, --printer=printer Select a printer: flat - Prints a flat profile as text (default). graph - Prints a graph profile as text. graph_html - Prints a graph profile as html. call_tree - format for KCacheGrind -m, --min_percent=min_percent The minimum percent a method must take before being included in output reports. this option is not supported for call tree. -f, --file=path Output results to a file instead of standard out. --mode=measure_mode Select what ruby-prof should measure: process - Process time (default). wall - Wall time. cpu - CPU time (Pentium and PowerPCs only). allocations - Object allocations (requires patched Ruby interpreter). --replace-progname Replace $0 when loading the .rb files. -h, --help Show help message -v, --version Show version [EMAIL PROTECTED]:~/src/subterfuge/src/main$ ruby-prof --mode=wall subterfuge.rb /usr/bin/ruby-prof:93: undefined local variable or method `mode' for main:Object (NameError) from /usr/lib/ruby/1.8/optparse.rb:1260:in `call' from /usr/lib/ruby/1.8/optparse.rb:1260:in `parse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1247:in `catch' from /usr/lib/ruby/1.8/optparse.rb:1247:in `parse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1241:in `order!' from /usr/lib/ruby/1.8/optparse.rb:1332:in `permute!' from /usr/lib/ruby/1.8/optparse.rb:1353:in `parse!' from /usr/bin/ruby-prof:121 -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores) Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ruby-prof depends on: ii libc6 2.7-10 GNU C Library: Shared libraries ii libruby1.8 1.8.6.114-2 Libraries necessary to run Ruby 1. ii rake 0.8.1-3 a ruby build program ii ruby 4.2 An interpreter of object-oriented ruby-prof recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]