acunote-ruby-prof 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/CHANGES +240 -0
  2. data/LICENSE +23 -0
  3. data/README.rdoc +439 -0
  4. data/Rakefile +148 -0
  5. data/bin/ruby-prof +236 -0
  6. data/examples/empty.png +0 -0
  7. data/examples/flat.txt +55 -0
  8. data/examples/graph.dot +106 -0
  9. data/examples/graph.html +823 -0
  10. data/examples/graph.png +0 -0
  11. data/examples/graph.txt +170 -0
  12. data/examples/minus.png +0 -0
  13. data/examples/multi.flat.txt +23 -0
  14. data/examples/multi.graph.html +906 -0
  15. data/examples/multi.grind.dat +194 -0
  16. data/examples/multi.stack.html +573 -0
  17. data/examples/plus.png +0 -0
  18. data/examples/stack.html +573 -0
  19. data/ext/ruby_prof/extconf.rb +43 -0
  20. data/ext/ruby_prof/measure_allocations.h +58 -0
  21. data/ext/ruby_prof/measure_cpu_time.h +152 -0
  22. data/ext/ruby_prof/measure_gc_runs.h +76 -0
  23. data/ext/ruby_prof/measure_gc_time.h +57 -0
  24. data/ext/ruby_prof/measure_memory.h +101 -0
  25. data/ext/ruby_prof/measure_process_time.h +52 -0
  26. data/ext/ruby_prof/measure_wall_time.h +53 -0
  27. data/ext/ruby_prof/mingw/Rakefile +23 -0
  28. data/ext/ruby_prof/mingw/build.rake +38 -0
  29. data/ext/ruby_prof/ruby_prof.c +1834 -0
  30. data/ext/ruby_prof/ruby_prof.h +190 -0
  31. data/ext/ruby_prof/version.h +4 -0
  32. data/lib/ruby-prof.rb +62 -0
  33. data/lib/ruby-prof/abstract_printer.rb +41 -0
  34. data/lib/ruby-prof/aggregate_call_info.rb +68 -0
  35. data/lib/ruby-prof/call_info.rb +112 -0
  36. data/lib/ruby-prof/call_stack_printer.rb +751 -0
  37. data/lib/ruby-prof/call_tree_printer.rb +133 -0
  38. data/lib/ruby-prof/dot_printer.rb +153 -0
  39. data/lib/ruby-prof/empty.png +0 -0
  40. data/lib/ruby-prof/flat_printer.rb +78 -0
  41. data/lib/ruby-prof/flat_printer_with_line_numbers.rb +72 -0
  42. data/lib/ruby-prof/graph_html_printer.rb +278 -0
  43. data/lib/ruby-prof/graph_printer.rb +245 -0
  44. data/lib/ruby-prof/method_info.rb +131 -0
  45. data/lib/ruby-prof/minus.png +0 -0
  46. data/lib/ruby-prof/multi_printer.rb +54 -0
  47. data/lib/ruby-prof/plus.png +0 -0
  48. data/lib/ruby-prof/rack.rb +30 -0
  49. data/lib/ruby-prof/result.rb +70 -0
  50. data/lib/ruby-prof/symbol_to_proc.rb +8 -0
  51. data/lib/ruby-prof/task.rb +146 -0
  52. data/lib/ruby-prof/test.rb +148 -0
  53. data/lib/unprof.rb +8 -0
  54. data/rails/environment/profile.rb +24 -0
  55. data/rails/example/example_test.rb +9 -0
  56. data/rails/profile_test_helper.rb +21 -0
  57. data/test/aggregate_test.rb +136 -0
  58. data/test/basic_test.rb +290 -0
  59. data/test/current_failures_windows +8 -0
  60. data/test/do_nothing.rb +0 -0
  61. data/test/duplicate_names_test.rb +32 -0
  62. data/test/enumerable_test.rb +16 -0
  63. data/test/exceptions_test.rb +15 -0
  64. data/test/exclude_threads_test.rb +54 -0
  65. data/test/exec_test.rb +14 -0
  66. data/test/line_number_test.rb +73 -0
  67. data/test/measurement_test.rb +122 -0
  68. data/test/method_elimination_test.rb +74 -0
  69. data/test/module_test.rb +44 -0
  70. data/test/multi_printer_test.rb +81 -0
  71. data/test/no_method_class_test.rb +13 -0
  72. data/test/prime.rb +55 -0
  73. data/test/prime_test.rb +13 -0
  74. data/test/printers_test.rb +164 -0
  75. data/test/recursive_test.rb +236 -0
  76. data/test/ruby-prof-bin +20 -0
  77. data/test/singleton_test.rb +38 -0
  78. data/test/stack_printer_test.rb +74 -0
  79. data/test/stack_test.rb +138 -0
  80. data/test/start_stop_test.rb +112 -0
  81. data/test/test_suite.rb +32 -0
  82. data/test/thread_test.rb +173 -0
  83. data/test/unique_call_path_test.rb +225 -0
  84. metadata +185 -0
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: acunote-ruby-prof
3
+ version: !ruby/object:Gem::Version
4
+ hash: 63
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 9
9
+ - 2
10
+ version: 0.9.2
11
+ platform: ruby
12
+ authors:
13
+ - Shugo Maeda, Charlie Savage, Roger Pack, Stefan Kaes
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-02-15 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: os
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rake-compiler
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id002
49
+ description: |
50
+ ruby-prof is a fast code profiler for Ruby. It is a C extension and
51
+ therefore is many times faster than the standard Ruby profiler. It
52
+ supports both flat and graph profiles. For each method, graph profiles
53
+ show how long the method ran, which methods called it and which
54
+ methods it called. RubyProf generate both text and html and can output
55
+ it to standard out or to a file.
56
+
57
+ email: shugo@ruby-lang.org, cfis@savagexi.com, rogerdpack@gmail.com, skaes@railsexpress.de
58
+ executables:
59
+ - ruby-prof
60
+ extensions:
61
+ - ext/ruby_prof/extconf.rb
62
+ extra_rdoc_files: []
63
+
64
+ files:
65
+ - Rakefile
66
+ - README.rdoc
67
+ - LICENSE
68
+ - CHANGES
69
+ - bin/ruby-prof
70
+ - examples/empty.png
71
+ - examples/flat.txt
72
+ - examples/graph.html
73
+ - examples/graph.txt
74
+ - examples/plus.png
75
+ - examples/minus.png
76
+ - examples/multi.grind.dat
77
+ - examples/multi.stack.html
78
+ - examples/multi.graph.html
79
+ - examples/stack.html
80
+ - examples/multi.flat.txt
81
+ - examples/graph.dot
82
+ - examples/graph.png
83
+ - ext/ruby_prof/ruby_prof.c
84
+ - ext/ruby_prof/measure_memory.h
85
+ - ext/ruby_prof/measure_allocations.h
86
+ - ext/ruby_prof/measure_process_time.h
87
+ - ext/ruby_prof/measure_cpu_time.h
88
+ - ext/ruby_prof/measure_wall_time.h
89
+ - ext/ruby_prof/ruby_prof.h
90
+ - ext/ruby_prof/version.h
91
+ - ext/ruby_prof/measure_gc_runs.h
92
+ - ext/ruby_prof/measure_gc_time.h
93
+ - ext/ruby_prof/mingw/Rakefile
94
+ - ext/ruby_prof/mingw/build.rake
95
+ - lib/ruby-prof.rb
96
+ - lib/unprof.rb
97
+ - lib/ruby-prof/dot_printer.rb
98
+ - lib/ruby-prof/graph_html_printer.rb
99
+ - lib/ruby-prof/empty.png
100
+ - lib/ruby-prof/aggregate_call_info.rb
101
+ - lib/ruby-prof/method_info.rb
102
+ - lib/ruby-prof/task.rb
103
+ - lib/ruby-prof/multi_printer.rb
104
+ - lib/ruby-prof/call_stack_printer.rb
105
+ - lib/ruby-prof/test.rb
106
+ - lib/ruby-prof/plus.png
107
+ - lib/ruby-prof/minus.png
108
+ - lib/ruby-prof/rack.rb
109
+ - lib/ruby-prof/flat_printer.rb
110
+ - lib/ruby-prof/result.rb
111
+ - lib/ruby-prof/symbol_to_proc.rb
112
+ - lib/ruby-prof/graph_printer.rb
113
+ - lib/ruby-prof/abstract_printer.rb
114
+ - lib/ruby-prof/call_info.rb
115
+ - lib/ruby-prof/flat_printer_with_line_numbers.rb
116
+ - lib/ruby-prof/call_tree_printer.rb
117
+ - rails/environment/profile.rb
118
+ - rails/profile_test_helper.rb
119
+ - rails/example/example_test.rb
120
+ - test/exceptions_test.rb
121
+ - test/prime_test.rb
122
+ - test/multi_printer_test.rb
123
+ - test/unique_call_path_test.rb
124
+ - test/prime.rb
125
+ - test/ruby-prof-bin
126
+ - test/recursive_test.rb
127
+ - test/method_elimination_test.rb
128
+ - test/line_number_test.rb
129
+ - test/singleton_test.rb
130
+ - test/exec_test.rb
131
+ - test/current_failures_windows
132
+ - test/module_test.rb
133
+ - test/enumerable_test.rb
134
+ - test/start_stop_test.rb
135
+ - test/exclude_threads_test.rb
136
+ - test/stack_printer_test.rb
137
+ - test/measurement_test.rb
138
+ - test/test_suite.rb
139
+ - test/basic_test.rb
140
+ - test/aggregate_test.rb
141
+ - test/do_nothing.rb
142
+ - test/duplicate_names_test.rb
143
+ - test/thread_test.rb
144
+ - test/stack_test.rb
145
+ - test/no_method_class_test.rb
146
+ - test/printers_test.rb
147
+ - ext/ruby_prof/extconf.rb
148
+ has_rdoc: true
149
+ homepage: http://rubyforge.org/projects/ruby-prof/
150
+ licenses: []
151
+
152
+ post_install_message:
153
+ rdoc_options: []
154
+
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ none: false
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ hash: 63
163
+ segments:
164
+ - 1
165
+ - 8
166
+ - 4
167
+ version: 1.8.4
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ hash: 3
174
+ segments:
175
+ - 0
176
+ version: "0"
177
+ requirements: []
178
+
179
+ rubyforge_project: ruby-prof
180
+ rubygems_version: 1.3.7
181
+ signing_key:
182
+ specification_version: 3
183
+ summary: Fast Ruby profiler
184
+ test_files:
185
+ - test/test_suite.rb