1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14

build / config / profiling / profiling.gni [blame]

# Copyright 2020 The Chromium Authors
# 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.")