dart-sdk/runtime
Ben Konyi d7935c209d [ Profiler ] Avoid building empty CPU profiles when sample streaming is enabled
Building an empty CPU profile is still costly as function tables are
populated whether or not there's samples in the profile. This change
checks to see if any sample in the list of SampleBlocks was collected
under a UserTag with streaming enabled before building the profile.

TEST=CQ, manual testing

Change-Id: Ib526f9999a8b2bf48a7df1488c7dcf959031cf5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238183
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-03-23 18:30:21 +00:00
..
bin Fix MSVC build 2022-03-22 18:28:19 +00:00
docs Revert "[vm] Implement Finalizer" 2022-03-22 11:55:38 +00:00
include Fixes for reland for analyze_snapshot program 2022-03-09 14:17:44 +00:00
lib Revert "[vm] Implement Finalizer" 2022-03-22 11:55:38 +00:00
observatory Reland "[ Service ] Update VM service message to not reference Observatory" 2022-03-17 23:15:57 +00:00
observatory_2 Reland "[ Service ] Update VM service message to not reference Observatory" 2022-03-17 23:15:57 +00:00
platform [vm] Improve crash reporting for gen_snapshot 2022-03-11 09:20:36 +00:00
tests [vm] Refactor compilation of runtime calls. 2022-03-22 19:45:03 +00:00
third_party Revert "[tools] Replace the Chromium binary size tool, which no longer works." 2022-02-04 02:11:06 +00:00
tools [vm] Add build-time option to use absl mutexes in place of pthread mutexes. 2022-03-10 23:48:05 +00:00
vm [ Profiler ] Avoid building empty CPU profiles when sample streaming is enabled 2022-03-23 18:30:21 +00:00
.clang-tidy
.gitignore
BUILD.gn [vm] Support -d0 on windows with clang 2022-03-14 11:23:48 +00:00
codereview.settings
configs.gni Reland "[vm] Build dart2native dependencies with the normal "create_sdk" target" 2020-06-17 16:12:26 +00:00
CPPLINT.cfg
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
PRESUBMIT.py [python3] Migrate PRESUBMIT.py files 2021-08-16 08:29:54 +00:00
runtime_args.gni [VM] error: ‘mallinfo mallinfo()’ is deprecated 2021-12-08 00:25:10 +00:00