Add a feature to enable heap profiling in subprocesses.
* Adds a "supported-processes" parameter to the HeapProfilerReporting
feature, with a list of processes that will allow heap profiling.
* Creates a HeapProfileController in all subprocesses. (Except on ios.)
Each controller makes a separate decision to enable heap profiling
based on the HeapProfilerReporting "supported-processes" and
probability parameters.
* Sets the "process" field of sampled reports correctly for the process
type being sampled.
* Connects a CallStackProfileCollector to each subprocess where heap
profiling is enabled.
Bug: 1327069
Change-Id: I226d2a507a2ba66a56595e423c9b080af506f125
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3677613
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Mike Wittman <wittman@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Auto-Submit: Joe Mason <joenotcharles@google.com>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1014016}
NOKEYCHECK=True
GitOrigin-RevId: 23d716aba91ae55c3df1aeb6b3fafef335cf0121
3 files changed