| # 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/config/fuchsia/zircon_images.gni") |
| import("//build/package.gni") |
| |
| group("benchmarks") { |
| testonly = true |
| deps = [ |
| ":fuchsia_benchmarks", |
| ":kernel-boot-benchmarks", |
| "//src/tests/benchmarks/fidl/go:go_fidl_benchmarks", |
| ] |
| } |
| |
| executable("fuchsia_benchmarks_bin") { |
| output_name = "fuchsia_benchmarks" |
| |
| sources = [ "benchmarks.cc" ] |
| |
| deps = [ "//garnet/testing/benchmarking:benchmarking" ] |
| } |
| |
| package("fuchsia_benchmarks") { |
| testonly = true |
| |
| binaries = [ |
| { |
| name = rebase_path("benchmarks.sh") |
| dest = "benchmarks.sh" |
| }, |
| { |
| shell = true |
| name = "fuchsia_benchmarks" |
| }, |
| { |
| name = rebase_path("benchmarks_perfcompare.sh") |
| dest = "benchmarks_perfcompare.sh" |
| }, |
| ] |
| |
| deps = [ ":fuchsia_benchmarks_bin" ] |
| } |
| |
| executable("kernel-boot-timeline") { |
| testonly = true |
| sources = [ "kernel_boot_timeline.cc" ] |
| deps = [ |
| "//sdk/lib/sys/cpp", |
| "//src/lib/inspect_deprecated:reader", |
| "//zircon/public/lib/perftest", |
| "//zircon/system/fidl/fuchsia-kernel", |
| ] |
| } |
| |
| package("kernel-boot-benchmarks") { |
| testonly = true |
| binaries = [ |
| { |
| shell = true |
| name = "kernel-boot-timeline" |
| }, |
| ] |
| deps = [ ":kernel-boot-timeline" ] |
| } |