-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profiler: Add WithDeltaProfiles() option
Delta profiles require a certain amount of heap memory that is proportional to MemStats.BuckHashSys (typically ~2x). For applications that make heavy use of code generation or recursion the memory usage can be several hundred MB. Add WithDeltaProfiles() that allows to disable delta profiles for applications where this is a deal breaker. Those applications will still see allocation profiles, but they won't be able to aggregate or compare them. The default value for WithDeltaProfiles() is true since applications with high BuckHashSys seem to be rare. See https://dtdg.co/go-delta-profile-docs for more information about delta profiles. Mitigates #1025 and implements PROF-4305.
- Loading branch information
Showing
4 changed files
with
84 additions
and
36 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
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