Created
April 12, 2009 01:41
-
-
Save methodmissing/93819 to your computer and use it in GitHub Desktop.
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
| # sudo ./instrument/clear_cache.d -c "./ruby instrument/clear_cache.rb" | |
| module A | |
| def to_s | |
| super + "A" | |
| end | |
| end | |
| class B | |
| def to_s | |
| "B" | |
| end | |
| end | |
| class C < B | |
| include A | |
| def to_s | |
| super + "C" | |
| end | |
| public :to_s | |
| end | |
| b = B.new | |
| b.extend A |
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
| 213-138-235-46:matzruby lourens$ sudo ./instrument/clear_cache.d -c "./ruby instrument/clear_cache.rb" | |
| ELAPSED TIME DISTRIBUTION, | |
| clear_cache | |
| 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | |
| 0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 0 | |
| value ------------- Distribution ------------- count | |
| 4096 | 0 | |
| 8192 |@@@@@@@@@@@@@@@@@@@@ 1 | |
| 16384 |@@@@@@@@@@@@@@@@@@@@ 1 | |
| 32768 | 0 | |
| clear_cache_by_class C 10181 | |
| value ------------- Distribution ------------- count | |
| 1099511627776 | 0 | |
| 2199023255552 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1 | |
| 4398046511104 | 0 | |
| clear_cache_by_id | |
| 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | |
| 0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 3137 | |
| value ------------- Distribution ------------- count | |
| 1099511627776 | 0 | |
| 2199023255552 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3 | |
| 4398046511104 | 0 | |
| ___ OVERLAP TIMES: ___ ______ ELAPSED ______ | |
| METHOD CLASS ID COUNT AVG(us) SUM(us) | |
| clear_cache 0 2 15 31 | |
| clear_cache_by_class C 10181 1 2769666985 2769666985 | |
| clear_cache_by_id 3137 3 2769666724 8309000173 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment