Created
August 13, 2017 07:25
-
-
Save SpringMT/1b5bed2f027bd39b26b285b2364c9535 to your computer and use it in GitHub Desktop.
stackprof print_method(/pow|newobj|math/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A#pow (/home/ec2-user/stackprof/sample.rb:11) | |
samples: 1574 self (41.2%) / 1574 total (41.2%) | |
callers: | |
1574 ( 100.0%) A#initialize | |
code: | |
| 11 | def pow | |
1574 (41.2%) / 1574 (41.2%) | 12 | 2 ** 100 | |
| 13 | end | |
A.newobj (/home/ec2-user/stackprof/sample.rb:15) | |
samples: 873 self (22.9%) / 873 total (22.9%) | |
callers: | |
873 ( 100.0%) A#initialize | |
code: | |
| 15 | def self.newobj | |
458 (12.0%) / 458 (12.0%) | 16 | Object.new | |
415 (10.9%) / 415 (10.9%) | 17 | Object.new | |
| 18 | end | |
A#math (/home/ec2-user/stackprof/sample.rb:20) | |
samples: 869 self (22.8%) / 1629 total (42.7%) | |
callers: | |
869 ( 53.3%) A#initialize | |
760 ( 46.7%) A#math | |
callees (760 total): | |
760 ( 100.0%) A#math | |
code: | |
| 20 | def math | |
869 (22.8%) / 109 (2.9%) | 21 | 2.times do | |
760 (19.9%) / 760 (19.9%) | 22 | 2 + 3 * 4 ^ 5 / 6 | |
| 23 | end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment