Files
sdk/runtime
Derek Xu 4a73fed7c5 [VM/Profiler] Fix Profiler::CalculateSampleBufferCapacity
This CL corrects a calculation in
`Profiler::CalculateSampleBufferCapacity` by semantically changing it
from `floor(FLAG_max_profile_depth / kMaxSamplesPerTick)` to
`ceil(FLAG_max_profile_depth / Sample::kPCArraySizeInWords)`.

This CL also makes the help message for `--max_profile_depth` consistent
with the logic in `Profiler::SetSampleDepth`.

TEST=CI, pkg/vm_service/test/profile_startup_cli_flag_test which will be
added in https://dart-review.googlesource.com/c/sdk/+/438980

Change-Id: Iae440cec74f8b84c927eca085a66d962b6745a7e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439360
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Derek Xu <derekx@google.com>
2025-07-21 11:05:41 -07:00
..
2025-06-23 21:08:19 -07:00
2025-07-15 07:50:01 -07:00