blob: 60a98460aaa7b794cfe8f1d81ecfa811104a3fa7 [file] [edit]
# Copyright 2023 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/rust/rustc_library.gni")
import("//src/developer/ffx/build/ffx_tool.gni")
rustc_library("lib") {
name = "ffx_tool_profiler"
edition = "2024"
with_unit_tests = true
sources = [
"src/args.rs",
"src/lib.rs",
]
deps = [
"//sdk/fidl/fuchsia.cpu.profiler:fuchsia.cpu.profiler_rust",
"//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager_rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/profiler",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-fs",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:schemars",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:termion",
]
}
ffx_tool("ffx_profiler") {
edition = "2024"
output_name = "ffx-profiler"
deps = [
":lib",
"//src/developer/ffx/lib/fho:lib",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
data_deps = [ "//tools/symbolizer" ]
}
group("profiler") {
public_deps = [
":ffx_profiler",
":ffx_profiler_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_profiler_versioned" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}