| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//extensions/buildflags/buildflags.gni") |
| |
| source_set("profiler") { |
| public = [ |
| "main_thread_stack_sampling_profiler.h", |
| "stack_sampling_configuration.h", |
| "thread_profiler.h", |
| ] |
| |
| sources = [ |
| "main_thread_stack_sampling_profiler.cc", |
| "stack_sampling_configuration.cc", |
| "thread_profiler.cc", |
| ] |
| |
| deps = [ |
| "//base", |
| "//build:branding_buildflags", |
| "//chrome/common:channel_info", |
| "//chrome/common:non_code_constants", |
| "//components/metrics", |
| "//components/metrics:call_stack_profile_builder", |
| "//components/metrics/public/mojom:call_stack_mojo_bindings", |
| "//components/version_info:version_info", |
| "//content/public/common", |
| "//extensions/buildflags", |
| ] |
| |
| if (enable_extensions) { |
| deps += [ "//extensions/common:common" ] |
| } |
| } |