1 The following are examples of running rb_objcpu.d.
3 The rb_objnew.d script reports the on-CPU time for new Object creation in Ruby
4 while the script is tracing. Here we see it running while
5 Code/Ruby/func_abc.rb is executed.
8 Tracing... Hit Ctrl-C to end.
10 Total object creation on-CPU time (ms): 0
12 Object creation on-CPU time distributions (us),
15 value ------------- Distribution ------------- count
17 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
21 value ------------- Distribution ------------- count
23 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
27 value ------------- Distribution ------------- count
29 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
33 value ------------- Distribution ------------- count
35 8 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
39 value ------------- Distribution ------------- count
47 We can see that there were several different types of Objects created
48 including three of type 'Object', one of which took 1 microsecond, one of
49 which took 2 to 3 microseconds, and the last of which took between 8 and 15