diff options
| author | Max Bernstein <ruby@bernsteinbear.com> | 2025-10-16 12:57:00 -0400 |
|---|---|---|
| committer | Max Bernstein <tekknolagi@gmail.com> | 2025-10-16 16:47:49 -0400 |
| commit | 9598b4449d50eb7d262a3711c43345cb987834f6 (patch) | |
| tree | 0b6a4c265990c29aa0341667f42808b89548aa58 /.github | |
| parent | 037b6e24ea89e15c9b24e427862ba43a916401ee (diff) | |
ZJIT: Fix singleton class qualified method names in stats
Now methods on singleton classes (for example, `new`) get split up into
`String*#new`, `Array*#new`, ... (where the `*` indicates a singleton
class) instead of all looking like `Class#new`.
before:
```
***ZJIT: Printing ZJIT statistics on exit***
Top-20 not inlined C methods (59.8% of total 10,506,888):
String#<<: 987,752 ( 9.4%)
Kernel#is_a?: 755,223 ( 7.2%)
Hash#[]=: 700,802 ( 6.7%)
Regexp#match?: 400,129 ( 3.8%)
String#empty?: 353,775 ( 3.4%)
String#start_with?: 334,961 ( 3.2%)
Hash#key?: 331,080 ( 3.2%)
ObjectSpace::WeakKeyMap#[]: 238,978 ( 2.3%)
TrueClass#===: 235,771 ( 2.2%)
FalseClass#===: 231,144 ( 2.2%)
Array#include?: 213,362 ( 2.0%)
Kernel#respond_to?: 198,730 ( 1.9%)
Kernel#dup: 178,920 ( 1.7%)
Kernel#block_given?: 178,767 ( 1.7%)
BasicObject#!=: 170,602 ( 1.6%)
Class#new: 168,079 ( 1.6%)
Kernel#kind_of?: 165,600 ( 1.6%)
String#==: 158,036 ( 1.5%)
Module#clock_gettime: 144,992 ( 1.4%)
NilClass#===: 137,833 ( 1.3%)
```
after:
```
***ZJIT: Printing ZJIT statistics on exit***
Top-20 not inlined C methods (59.8% of total 10,506,906):
String#<<: 987,752 ( 9.4%)
Kernel#is_a?: 755,237 ( 7.2%)
Hash#[]=: 700,802 ( 6.7%)
Regexp#match?: 400,129 ( 3.8%)
String#empty?: 353,775 ( 3.4%)
String#start_with?: 334,961 ( 3.2%)
Hash#key?: 331,080 ( 3.2%)
ObjectSpace::WeakKeyMap#[]: 238,978 ( 2.3%)
TrueClass#===: 235,771 ( 2.2%)
FalseClass#===: 231,144 ( 2.2%)
Array#include?: 213,362 ( 2.0%)
Kernel#respond_to?: 198,730 ( 1.9%)
Kernel#dup: 178,920 ( 1.7%)
Kernel#block_given?: 178,767 ( 1.7%)
BasicObject#!=: 170,602 ( 1.6%)
String*#new: 166,696 ( 1.6%)
Kernel#kind_of?: 165,600 ( 1.6%)
String#==: 158,039 ( 1.5%)
Process*#clock_gettime: 144,992 ( 1.4%)
NilClass#===: 137,833 ( 1.3%)
```
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions
