ruby-prof 0.15.7 → 0.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +5 -0
  3. data/doc/created.rid +4 -4
  4. data/doc/js/search_index.js.gz +0 -0
  5. data/examples/graph.dot +53 -75
  6. data/examples/multi.flat.txt +21 -21
  7. data/examples/multi.graph.html +693 -839
  8. data/examples/multi.grind.dat +93 -173
  9. data/examples/multi.stack.html +411 -437
  10. data/examples/stack.html +411 -437
  11. data/lib/ruby-prof/assets/call_stack_printer.css.html +117 -0
  12. data/lib/ruby-prof/assets/call_stack_printer.js.html +385 -0
  13. data/lib/ruby-prof/assets/call_stack_printer.png +0 -0
  14. data/lib/ruby-prof/printers/flat_printer.rb +1 -1
  15. data/lib/ruby-prof/printers/graph_html_printer.rb +43 -48
  16. data/lib/ruby-prof/version.rb +1 -1
  17. data/ruby-prof.gemspec +1 -1
  18. data/test/measure_memory_test.rb +5 -3
  19. data/test/printers_test.rb +1 -1
  20. metadata +5 -58
  21. data/doc/LICENSE.html +0 -114
  22. data/doc/README_rdoc.html +0 -592
  23. data/doc/Rack.html +0 -95
  24. data/doc/Rack/RubyProf.html +0 -264
  25. data/doc/RubyProf.html +0 -961
  26. data/doc/RubyProf/AbstractPrinter.html +0 -546
  27. data/doc/RubyProf/AggregateCallInfo.html +0 -537
  28. data/doc/RubyProf/CallInfo.html +0 -716
  29. data/doc/RubyProf/CallInfoPrinter.html +0 -120
  30. data/doc/RubyProf/CallInfoVisitor.html +0 -198
  31. data/doc/RubyProf/CallStackPrinter.html +0 -1121
  32. data/doc/RubyProf/CallTreePrinter.html +0 -359
  33. data/doc/RubyProf/Cmd.html +0 -631
  34. data/doc/RubyProf/DotPrinter.html +0 -257
  35. data/doc/RubyProf/FlatPrinter.html +0 -163
  36. data/doc/RubyProf/FlatPrinterWithLineNumbers.html +0 -208
  37. data/doc/RubyProf/GraphHtmlPrinter.html +0 -579
  38. data/doc/RubyProf/GraphPrinter.html +0 -139
  39. data/doc/RubyProf/MethodInfo.html +0 -885
  40. data/doc/RubyProf/MultiPrinter.html +0 -358
  41. data/doc/RubyProf/Profile.html +0 -713
  42. data/doc/RubyProf/ProfileTask.html +0 -490
  43. data/doc/RubyProf/Thread.html +0 -303
  44. data/doc/examples/flat_txt.html +0 -149
  45. data/doc/examples/graph_html.html +0 -850
  46. data/doc/examples/graph_txt.html +0 -274
  47. data/doc/images/add.png +0 -0
  48. data/doc/images/arrow_up.png +0 -0
  49. data/doc/images/brick.png +0 -0
  50. data/doc/images/brick_link.png +0 -0
  51. data/doc/images/bug.png +0 -0
  52. data/doc/images/bullet_black.png +0 -0
  53. data/doc/images/bullet_toggle_minus.png +0 -0
  54. data/doc/images/bullet_toggle_plus.png +0 -0
  55. data/doc/images/date.png +0 -0
  56. data/doc/images/delete.png +0 -0
  57. data/doc/images/find.png +0 -0
  58. data/doc/images/macFFBgHack.png +0 -0
  59. data/doc/images/package.png +0 -0
  60. data/doc/images/page_green.png +0 -0
  61. data/doc/images/page_white_text.png +0 -0
  62. data/doc/images/page_white_width.png +0 -0
  63. data/doc/images/plugin.png +0 -0
  64. data/doc/images/ruby.png +0 -0
  65. data/doc/images/tag_blue.png +0 -0
  66. data/doc/images/tag_green.png +0 -0
  67. data/doc/images/transparent.png +0 -0
  68. data/doc/images/wrench.png +0 -0
  69. data/doc/images/wrench_orange.png +0 -0
  70. data/doc/images/zoom.png +0 -0
  71. data/doc/index.html +0 -618
  72. data/doc/table_of_contents.html +0 -934
  73. data/examples/empty.png +0 -0
  74. data/examples/graph.png +0 -0
  75. data/examples/minus.png +0 -0
  76. data/examples/plus.png +0 -0
@@ -1,537 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class RubyProf::AggregateCallInfo - ruby-prof</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- </script>
12
-
13
- <script src="../js/jquery.js"></script>
14
- <script src="../js/darkfish.js"></script>
15
-
16
- <link href="../css/fonts.css" rel="stylesheet">
17
- <link href="../css/rdoc.css" rel="stylesheet">
18
-
19
-
20
-
21
- <body id="top" role="document" class="class">
22
- <nav role="navigation">
23
- <div id="project-navigation">
24
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
- <h2>
26
- <a href="../index.html" rel="home">Home</a>
27
- </h2>
28
-
29
- <div id="table-of-contents-navigation">
30
- <a href="../table_of_contents.html#pages">Pages</a>
31
- <a href="../table_of_contents.html#classes">Classes</a>
32
- <a href="../table_of_contents.html#methods">Methods</a>
33
- </div>
34
- </div>
35
-
36
- <div id="search-section" role="search" class="project-section initially-hidden">
37
- <form action="#" method="get" accept-charset="utf-8">
38
- <div id="search-field-wrapper">
39
- <input id="search-field" role="combobox" aria-label="Search"
40
- aria-autocomplete="list" aria-controls="search-results"
41
- type="text" name="search" placeholder="Search" spellcheck="false"
42
- title="Type to search, Up and Down to navigate, Enter to load">
43
- </div>
44
-
45
- <ul id="search-results" aria-label="Search Results"
46
- aria-busy="false" aria-expanded="false"
47
- aria-atomic="false" class="initially-hidden"></ul>
48
- </form>
49
- </div>
50
-
51
- </div>
52
-
53
-
54
-
55
- <div id="class-metadata">
56
-
57
- <div id="parent-class-section" class="nav-section">
58
- <h3>Parent</h3>
59
-
60
-
61
- <p class="link">Object
62
-
63
- </div>
64
-
65
-
66
-
67
- <!-- Method Quickref -->
68
- <div id="method-list-section" class="nav-section">
69
- <h3>Methods</h3>
70
-
71
- <ul class="link-list" role="directory">
72
-
73
- <li ><a href="#method-c-new">::new</a>
74
-
75
- <li ><a href="#method-i-called">#called</a>
76
-
77
- <li ><a href="#method-i-children">#children</a>
78
-
79
- <li ><a href="#method-i-children_time">#children_time</a>
80
-
81
- <li ><a href="#method-i-line">#line</a>
82
-
83
- <li ><a href="#method-i-parent">#parent</a>
84
-
85
- <li ><a href="#method-i-self_time">#self_time</a>
86
-
87
- <li ><a href="#method-i-target">#target</a>
88
-
89
- <li ><a href="#method-i-to_s">#to_s</a>
90
-
91
- <li ><a href="#method-i-total_time">#total_time</a>
92
-
93
- <li ><a href="#method-i-wait_time">#wait_time</a>
94
-
95
- </ul>
96
- </div>
97
-
98
- </div>
99
- </nav>
100
-
101
- <main role="main" aria-labelledby="class-RubyProf::AggregateCallInfo">
102
- <h1 id="class-RubyProf::AggregateCallInfo" class="class">
103
- class RubyProf::AggregateCallInfo
104
- </h1>
105
-
106
- <section class="description">
107
-
108
- </section>
109
-
110
-
111
-
112
-
113
- <section id="5Buntitled-5D" class="documentation-section">
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <section class="attribute-method-details" class="method-section">
122
- <header>
123
- <h3>Attributes</h3>
124
- </header>
125
-
126
-
127
- <div id="attribute-i-call_infos" class="method-detail">
128
- <div class="method-heading attribute-method-heading">
129
- <span class="method-name">call_infos</span><span
130
- class="attribute-access-type">[R]</span>
131
- </div>
132
-
133
- <div class="method-description">
134
-
135
-
136
-
137
- </div>
138
- </div>
139
-
140
- </section>
141
-
142
-
143
-
144
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
145
- <header>
146
- <h3>Public Class Methods</h3>
147
- </header>
148
-
149
-
150
- <div id="method-c-new" class="method-detail ">
151
-
152
- <div class="method-heading">
153
- <span class="method-name">new</span><span
154
- class="method-args">(call_infos)</span>
155
-
156
- <span class="method-click-advice">click to toggle source</span>
157
-
158
- </div>
159
-
160
-
161
- <div class="method-description">
162
-
163
-
164
-
165
-
166
-
167
-
168
- <div class="method-source-code" id="new-source">
169
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 6</span>
170
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">call_infos</span>)
171
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
172
- <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;Must specify at least one call info.&quot;</span>)
173
- <span class="ruby-keyword">end</span>
174
- <span class="ruby-ivar">@call_infos</span> = <span class="ruby-identifier">call_infos</span>
175
- <span class="ruby-keyword">end</span></pre>
176
- </div>
177
-
178
- </div>
179
-
180
-
181
-
182
-
183
- </div>
184
-
185
-
186
- </section>
187
-
188
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
189
- <header>
190
- <h3>Public Instance Methods</h3>
191
- </header>
192
-
193
-
194
- <div id="method-i-called" class="method-detail ">
195
-
196
- <div class="method-heading">
197
- <span class="method-name">called</span><span
198
- class="method-args">()</span>
199
-
200
- <span class="method-click-advice">click to toggle source</span>
201
-
202
- </div>
203
-
204
-
205
- <div class="method-description">
206
-
207
-
208
-
209
-
210
-
211
-
212
- <div class="method-source-code" id="called-source">
213
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 47</span>
214
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">called</span>
215
- <span class="ruby-identifier">aggregate</span>(<span class="ruby-value">:called</span>)
216
- <span class="ruby-keyword">end</span></pre>
217
- </div>
218
-
219
- </div>
220
-
221
-
222
-
223
-
224
- </div>
225
-
226
-
227
- <div id="method-i-children" class="method-detail ">
228
-
229
- <div class="method-heading">
230
- <span class="method-name">children</span><span
231
- class="method-args">()</span>
232
-
233
- <span class="method-click-advice">click to toggle source</span>
234
-
235
- </div>
236
-
237
-
238
- <div class="method-description">
239
-
240
-
241
-
242
-
243
-
244
-
245
- <div class="method-source-code" id="children-source">
246
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 25</span>
247
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">children</span>
248
- <span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">result</span>, <span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span>
249
- <span class="ruby-identifier">result</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">children</span>)
250
- <span class="ruby-keyword">end</span>
251
- <span class="ruby-keyword">end</span></pre>
252
- </div>
253
-
254
- </div>
255
-
256
-
257
-
258
-
259
- </div>
260
-
261
-
262
- <div id="method-i-children_time" class="method-detail ">
263
-
264
- <div class="method-heading">
265
- <span class="method-name">children_time</span><span
266
- class="method-args">()</span>
267
-
268
- <span class="method-click-advice">click to toggle source</span>
269
-
270
- </div>
271
-
272
-
273
- <div class="method-description">
274
-
275
-
276
-
277
-
278
-
279
-
280
- <div class="method-source-code" id="children_time-source">
281
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 43</span>
282
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">children_time</span>
283
- <span class="ruby-identifier">aggregate_without_recursion</span>(<span class="ruby-value">:children_time</span>)
284
- <span class="ruby-keyword">end</span></pre>
285
- </div>
286
-
287
- </div>
288
-
289
-
290
-
291
-
292
- </div>
293
-
294
-
295
- <div id="method-i-line" class="method-detail ">
296
-
297
- <div class="method-heading">
298
- <span class="method-name">line</span><span
299
- class="method-args">()</span>
300
-
301
- <span class="method-click-advice">click to toggle source</span>
302
-
303
- </div>
304
-
305
-
306
- <div class="method-description">
307
-
308
-
309
-
310
-
311
-
312
-
313
- <div class="method-source-code" id="line-source">
314
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 21</span>
315
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">line</span>
316
- <span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">line</span>
317
- <span class="ruby-keyword">end</span></pre>
318
- </div>
319
-
320
- </div>
321
-
322
-
323
-
324
-
325
- </div>
326
-
327
-
328
- <div id="method-i-parent" class="method-detail ">
329
-
330
- <div class="method-heading">
331
- <span class="method-name">parent</span><span
332
- class="method-args">()</span>
333
-
334
- <span class="method-click-advice">click to toggle source</span>
335
-
336
- </div>
337
-
338
-
339
- <div class="method-description">
340
-
341
-
342
-
343
-
344
-
345
-
346
- <div class="method-source-code" id="parent-source">
347
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 17</span>
348
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">parent</span>
349
- <span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">parent</span>
350
- <span class="ruby-keyword">end</span></pre>
351
- </div>
352
-
353
- </div>
354
-
355
-
356
-
357
-
358
- </div>
359
-
360
-
361
- <div id="method-i-self_time" class="method-detail ">
362
-
363
- <div class="method-heading">
364
- <span class="method-name">self_time</span><span
365
- class="method-args">()</span>
366
-
367
- <span class="method-click-advice">click to toggle source</span>
368
-
369
- </div>
370
-
371
-
372
- <div class="method-description">
373
-
374
-
375
-
376
-
377
-
378
-
379
- <div class="method-source-code" id="self_time-source">
380
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 35</span>
381
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">self_time</span>
382
- <span class="ruby-identifier">aggregate_without_recursion</span>(<span class="ruby-value">:self_time</span>)
383
- <span class="ruby-keyword">end</span></pre>
384
- </div>
385
-
386
- </div>
387
-
388
-
389
-
390
-
391
- </div>
392
-
393
-
394
- <div id="method-i-target" class="method-detail ">
395
-
396
- <div class="method-heading">
397
- <span class="method-name">target</span><span
398
- class="method-args">()</span>
399
-
400
- <span class="method-click-advice">click to toggle source</span>
401
-
402
- </div>
403
-
404
-
405
- <div class="method-description">
406
-
407
-
408
-
409
-
410
-
411
-
412
- <div class="method-source-code" id="target-source">
413
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 13</span>
414
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">target</span>
415
- <span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">target</span>
416
- <span class="ruby-keyword">end</span></pre>
417
- </div>
418
-
419
- </div>
420
-
421
-
422
-
423
-
424
- </div>
425
-
426
-
427
- <div id="method-i-to_s" class="method-detail ">
428
-
429
- <div class="method-heading">
430
- <span class="method-name">to_s</span><span
431
- class="method-args">()</span>
432
-
433
- <span class="method-click-advice">click to toggle source</span>
434
-
435
- </div>
436
-
437
-
438
- <div class="method-description">
439
-
440
-
441
-
442
-
443
-
444
-
445
- <div class="method-source-code" id="to_s-source">
446
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 51</span>
447
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
448
- <span class="ruby-node">&quot;#{call_infos.first.target.full_name}&quot;</span>
449
- <span class="ruby-keyword">end</span></pre>
450
- </div>
451
-
452
- </div>
453
-
454
-
455
-
456
-
457
- </div>
458
-
459
-
460
- <div id="method-i-total_time" class="method-detail ">
461
-
462
- <div class="method-heading">
463
- <span class="method-name">total_time</span><span
464
- class="method-args">()</span>
465
-
466
- <span class="method-click-advice">click to toggle source</span>
467
-
468
- </div>
469
-
470
-
471
- <div class="method-description">
472
-
473
-
474
-
475
-
476
-
477
-
478
- <div class="method-source-code" id="total_time-source">
479
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 31</span>
480
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">total_time</span>
481
- <span class="ruby-identifier">aggregate_without_recursion</span>(<span class="ruby-value">:total_time</span>)
482
- <span class="ruby-keyword">end</span></pre>
483
- </div>
484
-
485
- </div>
486
-
487
-
488
-
489
-
490
- </div>
491
-
492
-
493
- <div id="method-i-wait_time" class="method-detail ">
494
-
495
- <div class="method-heading">
496
- <span class="method-name">wait_time</span><span
497
- class="method-args">()</span>
498
-
499
- <span class="method-click-advice">click to toggle source</span>
500
-
501
- </div>
502
-
503
-
504
- <div class="method-description">
505
-
506
-
507
-
508
-
509
-
510
-
511
- <div class="method-source-code" id="wait_time-source">
512
- <pre><span class="ruby-comment"># File lib/ruby-prof/aggregate_call_info.rb, line 39</span>
513
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">wait_time</span>
514
- <span class="ruby-identifier">aggregate_without_recursion</span>(<span class="ruby-value">:wait_time</span>)
515
- <span class="ruby-keyword">end</span></pre>
516
- </div>
517
-
518
- </div>
519
-
520
-
521
-
522
-
523
- </div>
524
-
525
-
526
- </section>
527
-
528
- </section>
529
- </main>
530
-
531
-
532
- <footer id="validator-badges" role="contentinfo">
533
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
534
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
535
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
536
- </footer>
537
-