4a73fed7c5
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>