-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vm] Fix HeapProfileSampler::SampleOldSpaceAllocation
When Isolate is just starting up and no TLABs are yet present we were setting interval_to_next_sample_ to -1 which caused every old space allocation to be sampled. This CL properly initializes the interval to sampling_interval_ instead. TEST=vm/cc/DartAPI_HeapSampling_CorrectSamplingIntervalForOldSpaceAllocations Change-Id: Ieb29234379d3afa4716ebdf3591f9fc0cbcaef71 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311844 Commit-Queue: Slava Egorov <[email protected]> Commit-Queue: Martin Kustermann <[email protected]> Auto-Submit: Slava Egorov <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 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