diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2022-11-09 17:09:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 17:09:16 -0500 |
commit | 9ab978b7183d92cf1451be5dce7c7cc72222a39a (patch) | |
tree | 6002d5c57c8c1cb7faa2bc88adab619281dd3728 /doc/matchdata/end.rdoc | |
parent | 0e1e1b19804b7ea704ec43c4fb23082f7e74da3b (diff) | |
download | ruby-9ab978b7183d92cf1451be5dce7c7cc72222a39a.tar.gz |
Fix exit locations dump (#6703)
While I was working on my RubyConf talk for tracing yjit exit locations
I realized that there were exits from the dump code included in the
stats data. For example I saw 224 interp leave exits for a simple script
that should have had 1 or 2. I realized that the dump code needs to be
called _after_ the stats are generated, otherwise the dump code will be
counted in the stats exits.
I've added a `_dump_locations` method to the `at_exit` for stats
generation to ensure that it runs last. I've updated the documentation
to add a note that if you call `dump_exit_locations` directly, your
stats will include the dump code exits as well.
Diffstat (limited to 'doc/matchdata/end.rdoc')
0 files changed, 0 insertions, 0 deletions