Commit 07309a9d authored by Clark DuVall's avatar Clark DuVall Committed by Chromium LUCI CQ

[WebLayer] Record GPU process memory histogram

Bug: 1146438
Change-Id: I295bd5e8899b517540c310b4265781f787bac1aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2628035Reviewed-by: default avatarBo <boliu@chromium.org>
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843195}
parent 61db3c3e
......@@ -54,14 +54,16 @@ void RecordMemoryMetricsImpl(
process_dump.os_dump().private_footprint_kb / 1024);
break;
}
case memory_instrumentation::mojom::ProcessType::GPU: {
MEMORY_METRICS_HISTOGRAM_MB(
GetPrivateFootprintHistogramName(HistogramProcessType::kGpu),
process_dump.os_dump().private_footprint_kb / 1024);
break;
}
// Currently this class only records metrics for the browser and
// renderer process, as it originated from WebView, where there are no
// other processes.
// TODO(weblayer-team): refactor to allow the embedder to record GPU
// metrics.
case memory_instrumentation::mojom::ProcessType::GPU:
FALLTHROUGH;
case memory_instrumentation::mojom::ProcessType::ARC:
FALLTHROUGH;
case memory_instrumentation::mojom::ProcessType::UTILITY:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment