Skip to content

Commit 0eff4ce

Browse files
author
Charlie Savage
committed
Updated docs.
1 parent 1ece4d2 commit 0eff4ce

File tree

13 files changed

+2929
-597
lines changed

13 files changed

+2929
-597
lines changed

assets/styles.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,8 @@ dd {
6363
padding: 1.5rem 2rem;
6464
}
6565

66-
.header > div {
67-
display: flex;
68-
flex-direction: row;
69-
align-items: center;
70-
}
71-
72-
.header h1 {
73-
margin-bottom: 0;
66+
.header img {
67+
height: 40px;
7468
}
7569

7670
.table-header {

examples/primes.call_info.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Thread ID: 21426400
2+
Fiber ID: 33322640
3+
Total Time: 0.125
4+
Sort by:
5+
6+
Object#run (tt:0.12, st:0.00, wt:0.00, ct:0.12, call:1, )
7+
Object#run_primes (tt:0.12, st:0.00, wt:0.00, ct:0.12, call:1, )
8+
Object#make_random_array (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
9+
Class#new (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
10+
Array#initialize (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
11+
Array#each_index (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
12+
Kernel#rand (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:10000, )
13+
Object#find_primes (tt:0.12, st:0.00, wt:0.00, ct:0.12, call:1, )
14+
Array#select (tt:0.12, st:0.00, wt:0.00, ct:0.12, call:1, )
15+
Object#is_prime (tt:0.12, st:0.00, wt:0.00, ct:0.12, call:10000, )
16+
Integer#upto (tt:0.12, st:0.12, wt:0.00, ct:0.00, call:10000, )
17+
Object#find_largest (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
18+
Array#first (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
19+
Integer#upto (tt:0.00, st:0.00, wt:0.00, ct:0.00, call:1, )
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
events: wall_time
2+
3+
fl=
4+
fn=Array::first
5+
0 0
6+
7+
fl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
8+
fn=Object::find_largest
9+
33 0
10+
cfl=
11+
cfn=Array::first
12+
calls=1 34
13+
34 0
14+
cfl=
15+
cfn=Integer::upto
16+
calls=1 38
17+
38 0
18+
19+
fl=
20+
fn=Integer::upto
21+
0 125000
22+
23+
fl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
24+
fn=Object::is_prime
25+
18 0
26+
cfl=
27+
cfn=Integer::upto
28+
calls=10000 20
29+
20 125000
30+
31+
fl=
32+
fn=Array::select
33+
0 0
34+
cfl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
35+
cfn=Object::is_prime
36+
calls=10000 28
37+
28 125000
38+
39+
fl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
40+
fn=Object::find_primes
41+
26 0
42+
cfl=
43+
cfn=Array::select
44+
calls=1 27
45+
27 125000
46+
47+
fl=
48+
fn=Kernel::rand
49+
0 0
50+
51+
fl=
52+
fn=Array::each_index
53+
0 0
54+
cfl=
55+
cfn=Kernel::rand
56+
calls=10000 12
57+
12 0
58+
59+
fl=
60+
fn=Array::initialize
61+
0 0
62+
63+
fl=
64+
fn=Class::new
65+
0 0
66+
cfl=
67+
cfn=Array::initialize
68+
calls=1 0
69+
0 0
70+
71+
fl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
72+
fn=Object::make_random_array
73+
9 0
74+
cfl=
75+
cfn=Class::new
76+
calls=1 10
77+
10 0
78+
cfl=
79+
cfn=Array::each_index
80+
calls=1 11
81+
11 0
82+
83+
fl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
84+
fn=Object::run_primes
85+
47 0
86+
cfl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
87+
cfn=Object::make_random_array
88+
calls=1 49
89+
49 0
90+
cfl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
91+
cfn=Object::find_primes
92+
calls=1 52
93+
52 125000
94+
cfl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
95+
cfn=Object::find_largest
96+
calls=1 55
97+
55 0
98+
99+
fl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
100+
fn=Object::run
101+
69 0
102+
cfl=C:/msys64/usr/local/src/ruby-prof/test/prime.rb
103+
cfn=Object::run_primes
104+
calls=1 69
105+
69 125000
106+

examples/primes.dot

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
digraph "Profile" {
2+
labelloc=t;
3+
labeljust=l;
4+
subgraph "Thread 21426400" {
5+
27580160 [label="first\n(0%)"];
6+
27580160 -> 27580160 [label="1/1" fontsize=10 fontcolor="#666666"];
7+
27580180 [label="find_largest\n(0%)"];
8+
27580180 -> 27580180 [label="1/1" fontsize=10 fontcolor="#666666"];
9+
27580200 [label="upto\n(100%)"];
10+
27580200 -> 27580200 [label="10000/10001" fontsize=10 fontcolor="#666666"];
11+
27580200 -> 27580200 [label="1/10001" fontsize=10 fontcolor="#666666"];
12+
27580260 [label="is_prime\n(100%)"];
13+
27580260 -> 27580260 [label="10000/10000" fontsize=10 fontcolor="#666666"];
14+
27580380 [label="select\n(100%)"];
15+
27580380 -> 27580380 [label="1/1" fontsize=10 fontcolor="#666666"];
16+
27580400 [label="find_primes\n(100%)"];
17+
27580400 -> 27580400 [label="1/1" fontsize=10 fontcolor="#666666"];
18+
27580480 [label="rand\n(0%)"];
19+
27580480 -> 27580480 [label="10000/10000" fontsize=10 fontcolor="#666666"];
20+
27580520 [label="each_index\n(0%)"];
21+
27580520 -> 27580520 [label="1/1" fontsize=10 fontcolor="#666666"];
22+
27580640 [label="initialize\n(0%)"];
23+
27580640 -> 27580640 [label="1/1" fontsize=10 fontcolor="#666666"];
24+
27580660 [label="new\n(0%)"];
25+
27580660 -> 27580660 [label="1/1" fontsize=10 fontcolor="#666666"];
26+
27580720 [label="make_random_array\n(0%)"];
27+
27580720 -> 27580720 [label="1/1" fontsize=10 fontcolor="#666666"];
28+
27580740 [label="run_primes\n(100%)"];
29+
27580740 -> 27580740 [label="1/1" fontsize=10 fontcolor="#666666"];
30+
27580780 [label="run\n(100%)"];
31+
27580780 -> 27580780 [label="1/1" fontsize=10 fontcolor="#666666"];
32+
}
33+
subgraph cluster_21621600 {
34+
label = "Object";
35+
fontcolor = "#666666";
36+
fontsize = 16;
37+
color = "#666666";
38+
27580780;
39+
27580740;
40+
27580720;
41+
27580400;
42+
27580260;
43+
27580180;
44+
}
45+
subgraph cluster_21621460 {
46+
label = "Class";
47+
fontcolor = "#666666";
48+
fontsize = 16;
49+
color = "#666666";
50+
27580660;
51+
}
52+
subgraph cluster_21610180 {
53+
label = "Array";
54+
fontcolor = "#666666";
55+
fontsize = 16;
56+
color = "#666666";
57+
27580640;
58+
27580520;
59+
27580380;
60+
27580160;
61+
}
62+
subgraph cluster_21621220 {
63+
label = "Kernel";
64+
fontcolor = "#666666";
65+
fontsize = 16;
66+
color = "#666666";
67+
27580480;
68+
}
69+
subgraph cluster_21610420 {
70+
label = "Integer";
71+
fontcolor = "#666666";
72+
fontsize = 16;
73+
color = "#666666";
74+
27580200;
75+
}
76+
}

examples/primes.flat.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Measure Mode: wall_time
2+
Thread ID: 21426400
3+
Fiber ID: 33322640
4+
Total: 0.125000
5+
Sort by: self_time
6+
7+
%self total self wait child calls name location
8+
100.00 0.125 0.125 0.000 0.000 10001 Integer#upto
9+
0.00 0.000 0.000 0.000 0.000 1 Array#first
10+
0.00 0.000 0.000 0.000 0.000 1 Object#find_largest C:/msys64/usr/local/src/ruby-prof/test/prime.rb:33
11+
0.00 0.125 0.000 0.000 0.125 10000 Object#is_prime C:/msys64/usr/local/src/ruby-prof/test/prime.rb:18
12+
0.00 0.125 0.000 0.000 0.125 1 Array#select
13+
0.00 0.125 0.000 0.000 0.125 1 Object#find_primes C:/msys64/usr/local/src/ruby-prof/test/prime.rb:26
14+
0.00 0.000 0.000 0.000 0.000 10000 Kernel#rand
15+
0.00 0.000 0.000 0.000 0.000 1 Array#each_index
16+
0.00 0.000 0.000 0.000 0.000 1 Array#initialize
17+
0.00 0.000 0.000 0.000 0.000 1 Class#new
18+
0.00 0.000 0.000 0.000 0.000 1 Object#make_random_array C:/msys64/usr/local/src/ruby-prof/test/prime.rb:9
19+
0.00 0.125 0.000 0.000 0.125 1 Object#run_primes C:/msys64/usr/local/src/ruby-prof/test/prime.rb:47
20+
0.00 0.125 0.000 0.000 0.125 1 Object#run C:/msys64/usr/local/src/ruby-prof/test/prime.rb:69
21+
22+
* recursively called methods
23+
24+
Columns are:
25+
26+
%self - The percentage of time spent in this method, derived from self_time/total_time.
27+
total - The time spent in this method and its children.
28+
self - The time spent in this method.
29+
wait - The amount of time this method waited for other threads.
30+
child - The time spent in this method's children.
31+
calls - The number of times this method was called.
32+
name - The name of the method.
33+
location - The location of the method.
34+
35+
The interpretation of method names is:
36+
37+
* MyObject#test - An instance method "test" of the class "MyObject"
38+
* <Object:MyObject>#test - The <> characters indicate a method on a singleton class.

0 commit comments

Comments
 (0)