blob: 489104d8c425b0e3de77a08278ad38c50fcd15b6 [file] [log] [blame]
# Copyright 2018 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/android/config.gni")
if (use_order_profiling &&
(target_cpu == "arm" || target_cpu == "arm64" || target_cpu == "x86")) {
static_library("orderfile_instrumentation") {
sources = [ "orderfile_instrumentation.h" ]
if (use_call_graph) {
sources += [ "orderfile_call_graph_instrumentation.cc" ]
} else {
sources += [ "orderfile_instrumentation.cc" ]
}
deps = [ "//base" ]
}
executable("orderfile_instrumentation_perftest") {
testonly = true
if (use_call_graph) {
sources = [ "orderfile_call_graph_instrumentation_perftest.cc" ]
} else {
sources = [ "orderfile_instrumentation_perftest.cc" ]
}
deps = [
":orderfile_instrumentation",
"//base",
"//testing/gtest",
"//testing/perf",
]
configs -= [ "//build/config/android:default_orderfile_instrumentation" ]
}
}