Commit cb39283
committed
YJIT: In stats, group by resolved C method name
Previously, in the "Top-N most frequent C calls"
section of --yjit-stats output, we printed the class
name of the receiver, not the method owner. This meant
that calls on subclass instances that land on the same
method showed up as different entires.
Similarly, method called using an alias showed up as
different entries from other aliases.
Group by the resolved method instead.
Test program:
1.itself; [].itself; true.inspect; true.to_s
Before:
Top-4 most frequent C calls (80.0% of C calls):
1 (20.0%): Integer#itself
1 (20.0%): TrueClass#to_s
1 (20.0%): TrueClass#inspect
1 (20.0%): Array#itself
After:
Top-2 most frequent C calls (80.0% of C calls):
2 (40.0%): Kernel#itself
2 (40.0%): TrueClass#to_s1 parent 158b8cb commit cb39283
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6871 | 6871 | | |
6872 | 6872 | | |
6873 | 6873 | | |
6874 | | - | |
6875 | | - | |
| 6874 | + | |
| 6875 | + | |
6876 | 6876 | | |
6877 | 6877 | | |
6878 | 6878 | | |
| |||
9099 | 9099 | | |
9100 | 9100 | | |
9101 | 9101 | | |
9102 | | - | |
| 9102 | + | |
| 9103 | + | |
| 9104 | + | |
| 9105 | + | |
9103 | 9106 | | |
9104 | 9107 | | |
9105 | 9108 | | |
| |||
0 commit comments