ruby-prof 0.10.5 → 0.10.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -109,7 +109,6 @@ has not yet started. In addition, resume can also take a block:
109
109
  With this usage, resume will automatically call pause at the
110
110
  end of the block.
111
111
 
112
-
113
112
  === require unprof
114
113
 
115
114
  The third way of using ruby-prof is by requiring unprof.rb:
@@ -117,8 +116,7 @@ The third way of using ruby-prof is by requiring unprof.rb:
117
116
  require 'unprof'
118
117
 
119
118
  This will start profiling immediately at that point and will output the results
120
- using a flat profile report after the process ends.
121
-
119
+ using a flat profile report when the process ends.
122
120
 
123
121
  == Method Elimination
124
122
 
@@ -442,7 +440,8 @@ profiled. Most programs will run approximately twice as slow
442
440
  while highly recursive programs (like the fibonacci series test)
443
441
  will run three times slower.
444
442
 
445
- Because of some threading difficulties in 1.9, it currently runs a bit slower there.
443
+ Because of some threading difficulties in 1.9, it currently runs a
444
+ bit slower there, as well.
446
445
  http://www.ruby-forum.com/topic/201329
447
446
 
448
447
  == License
data/bin/ruby-prof CHANGED
@@ -8,12 +8,10 @@
8
8
  #
9
9
  # ruby_prof [options] <script.rb> [--] [script-options]"
10
10
  #
11
- # Options:
11
+ # Various options:
12
12
  # run "$ ruby-prof --help" to see them
13
- #
14
13
  #
15
14
  # See also: {flat profiles}[link:files/examples/flat_txt.html], {graph profiles}[link:files/examples/graph_txt.html], {html graph profiles}[link:files/examples/graph_html.html]
16
- #
17
15
 
18
16
  require 'ostruct'
19
17
  require 'optparse'
@@ -29,7 +27,7 @@ options.specialized_instruction = false
29
27
 
30
28
  opts = OptionParser.new do |opts|
31
29
  opts.banner = "ruby_prof #{RubyProf::VERSION}\n" +
32
- "Usage: ruby-prof [options] <script.rb> [--] [script-options]"
30
+ "Usage: ruby-prof [options] <script.rb> [--] [profiled-script-command-line-options]"
33
31
 
34
32
  opts.separator ""
35
33
  opts.separator "Options:"
@@ -44,7 +44,7 @@ unless Gem.win_platform? || RUBY_PLATFORM =~ /darwin/
44
44
  end
45
45
  add_define("RUBY_VERSION", RUBY_VERSION.gsub('.', ''))
46
46
 
47
- # for ruby 1.9, determine whether threads inherit trace flags (skaes patched 1.9 rubies do)
47
+ # for ruby 1.9, determine whether threads inherit trace flags (latest 1.9.2 works correctly)
48
48
  if RUBY_VERSION > "1.9"
49
49
  require 'set'
50
50
  threads = Set.new
@@ -1,4 +1,4 @@
1
- #define RUBY_PROF_VERSION "0.10.5" // for easy parsing from rake files
1
+ #define RUBY_PROF_VERSION "0.10.6" // for easy parsing from rake files
2
2
  #define RUBY_PROF_VERSION_MAJ 0
3
3
  #define RUBY_PROF_VERSION_MIN 10
4
- #define RUBY_PROF_VERSION_MIC 5
4
+ #define RUBY_PROF_VERSION_MIC 6
@@ -123,7 +123,7 @@ module RubyProf
123
123
  if RUBY_PLATFORM =~ /darwin/
124
124
  "<a href=\"txmt://open?url=file://#{file}&line=#{method.line}\">#{h(name(call_info))}</a>"
125
125
  else
126
- "<a href=\"file://#{file}?line=#{method.line}\">#{h(name(call_info))}</a>"
126
+ "<a href=\"file://#{file}##{method.line}\">#{h(name(call_info))}</a>"
127
127
  end
128
128
  end
129
129
  end
@@ -125,7 +125,7 @@ module RubyProf
125
125
  if RUBY_PLATFORM =~ /darwin/
126
126
  "<a href=\"txmt://open?url=file://#{h srcfile}&line=#{linenum}\" title=\"#{h srcfile}:#{linenum}\">#{linenum}</a>"
127
127
  else
128
- "<a href=\"file://#{h srcfile}?line=#{linenum}\" title=\"#{h srcfile}:#{linenum}\">#{linenum}</a>"
128
+ "<a href=\"file://#{h srcfile}##{linenum}\" title=\"#{h srcfile}:#{linenum}\">#{linenum}</a>"
129
129
  end
130
130
  end
131
131
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-prof
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
5
- prerelease: false
4
+ hash: 59
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 5
10
- version: 0.10.5
9
+ - 6
10
+ version: 0.10.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shugo Maeda, Charlie Savage, Roger Pack, Stefan Kaes
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-20 00:00:00 -06:00
19
- default_executable:
18
+ date: 2011-04-29 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: os
@@ -145,7 +144,6 @@ files:
145
144
  - test/thread_test.rb
146
145
  - test/unique_call_path_test.rb
147
146
  - ext/ruby_prof/extconf.rb
148
- has_rdoc: true
149
147
  homepage: http://rubyforge.org/projects/ruby-prof/
150
148
  licenses: []
151
149
 
@@ -177,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
175
  requirements: []
178
176
 
179
177
  rubyforge_project: ruby-prof
180
- rubygems_version: 1.3.7
178
+ rubygems_version: 1.7.2
181
179
  signing_key:
182
180
  specification_version: 3
183
181
  summary: Fast Ruby profiler