summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/build/config/profiling
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--third_party/libwebrtc/build/config/profiling/OWNERS2
-rw-r--r--third_party/libwebrtc/build/config/profiling/profiling.gni14
2 files changed, 16 insertions, 0 deletions
diff --git a/third_party/libwebrtc/build/config/profiling/OWNERS b/third_party/libwebrtc/build/config/profiling/OWNERS
new file mode 100644
index 0000000000..3d69566fd5
--- /dev/null
+++ b/third_party/libwebrtc/build/config/profiling/OWNERS
@@ -0,0 +1,2 @@
+liaoyuke@chromium.org
+sajjadm@chromium.org
diff --git a/third_party/libwebrtc/build/config/profiling/profiling.gni b/third_party/libwebrtc/build/config/profiling/profiling.gni
new file mode 100644
index 0000000000..9ca3d4aa1b
--- /dev/null
+++ b/third_party/libwebrtc/build/config/profiling/profiling.gni
@@ -0,0 +1,14 @@
+# Copyright 2020 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("//build/config/compiler/pgo/pgo.gni")
+import("//build/config/coverage/coverage.gni")
+
+declare_args() {
+ use_clang_profiling =
+ is_a_target_toolchain && (use_clang_coverage || chrome_pgo_phase == 1)
+}
+
+assert(!use_clang_profiling || is_clang,
+ "Clang Source-based profiling requires clang.")