Commit 65493578 authored by kylechar's avatar kylechar Committed by Commit Bot

Don't increment LAUNCHED UMA for unsandboxed.

We don't increment the crashed UMA for GPU_PROCESS_KIND_UNSANDBOXED. Don't
increment the launched UMA either.

Bug: 846333
Change-Id: I3f5845c3bd1b221640a11098ed7c5b7b1da2148b
Reviewed-on: https://chromium-review.googlesource.com/1091492Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565455}
parent b3bf25e6
...@@ -1411,6 +1411,7 @@ bool GpuProcessHost::LaunchGpuProcess() { ...@@ -1411,6 +1411,7 @@ bool GpuProcessHost::LaunchGpuProcess() {
process_->Launch(std::move(delegate), std::move(cmd_line), true); process_->Launch(std::move(delegate), std::move(cmd_line), true);
process_launched_ = true; process_launched_ = true;
if (kind_ == GPU_PROCESS_KIND_SANDBOXED) {
auto* gpu_data_manager = GpuDataManagerImpl::GetInstance(); auto* gpu_data_manager = GpuDataManagerImpl::GetInstance();
if (gpu_data_manager->HardwareAccelerationEnabled()) { if (gpu_data_manager->HardwareAccelerationEnabled()) {
UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsHardwareAccelerated, UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsHardwareAccelerated,
...@@ -1419,8 +1420,9 @@ bool GpuProcessHost::LaunchGpuProcess() { ...@@ -1419,8 +1420,9 @@ bool GpuProcessHost::LaunchGpuProcess() {
UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsSwiftShader, LAUNCHED, UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsSwiftShader, LAUNCHED,
GPU_PROCESS_LIFETIME_EVENT_MAX); GPU_PROCESS_LIFETIME_EVENT_MAX);
} else { } else {
UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsDisplayCompositor, LAUNCHED, UMA_HISTOGRAM_ENUMERATION(kProcessLifetimeEventsDisplayCompositor,
GPU_PROCESS_LIFETIME_EVENT_MAX); LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX);
}
} }
return true; return true;
......
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