| # Copyright 2017 The Fuchsia 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/components.gni") |
| import("//build/testing/perf/test.gni") |
| |
| group("benchmarks") { |
| testonly = true |
| deps = [ |
| ":kernel_boot_benchmarks", |
| "//src/tests/benchmarks/fidl:benchmarks", |
| ] |
| } |
| |
| executable("kernel-boot-stats") { |
| testonly = true |
| sources = [ "kernel_boot_stats.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_hlcpp", |
| "//sdk/lib/sys/cpp", |
| "//zircon/system/ulib/inspect", |
| "//zircon/system/ulib/perftest", |
| ] |
| } |
| |
| fuchsia_package_with_single_component("kernel-boot-benchmarks") { |
| testonly = true |
| deps = [ ":kernel-boot-stats" ] |
| manifest = "meta/kernel-boot-benchmarks.cml" |
| } |
| |
| fuchsia_component_perf_test("kernel_boot_benchmarks") { |
| package = ":kernel-boot-benchmarks" |
| component_name = "kernel-boot-benchmarks" |
| test_type = "system" |
| expected_metric_names_filepath = "//src/tests/end_to_end/perf/expected_metric_names/fuchsia.kernel.boot.txt" |
| } |