-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/perf: Prevent intermediate perfmap/jitdump entry lists
Previously we maintained multiple lists of perfmap and jitdump entries as well as all related strings. This caused somewhat large memory spikes when a lot of these have to be loaded frequently. Now strings are never on heap and are directly written to the optimized symtab file, and only entries are loaded into memory once so they can be sorted and deduplicated easily and then without any further intermediate lists directly written to the optimized symtab file. If this is also not sufficient the next optimization would be to read perfmap files from the back and directly write entries that are read if they don't conflict with any already written memory ranges.
- Loading branch information
Showing
7 changed files
with
288 additions
and
292 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.