| # Copyright 2024 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":ffx_profile_memory_components_test($host_toolchain)" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| ffx_plugin("ffx_profile_memory_components") { | |
| sources = [ | |
| "src/detailed.rs", | |
| "src/json.rs", | |
| "src/lib.rs", | |
| "src/output.rs", | |
| "src/resource_annotator.rs", | |
| "src/statistics.rs", | |
| ] | |
| args_deps = [ | |
| "//src/developer/ffx/core:lib", | |
| "//third_party/rust_crates:argh", | |
| "//third_party/rust_crates:camino", | |
| ] | |
| args_sources = [ "src/args.rs" ] | |
| edition = "2024" | |
| link_deps = [ "//third_party/zstd" ] | |
| sdk_category = "not-yet-specified" | |
| version = "0.1.0" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/profile/memory:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust_fdomain", | |
| "//sdk/fidl/fuchsia.memory.attribution.plugin:fuchsia.memory.attribution.plugin_rust_fdomain", | |
| "//sdk/rust/zx-types", | |
| "//src/developer/ffx/lib/errors:lib", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/lib/assembly/assembled_system", | |
| "//src/lib/assembly/container", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/performance/memory/attribution/processing", | |
| "//src/storage/fxfs/platform:constants", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:chrono", | |
| "//third_party/rust_crates:csv", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:prettytable-rs", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:zstd", | |
| ] | |
| } | |
| if (is_host) { | |
| rustc_test("ffx_profile_memory_components_test") { | |
| sources = [ | |
| "src/detailed.rs", | |
| "src/json.rs", | |
| "src/lib.rs", | |
| "src/output.rs", | |
| "src/resource_annotator.rs", | |
| "src/statistics.rs", | |
| ] | |
| edition = "2024" | |
| link_deps = [ "//third_party/zstd" ] | |
| deps = [ | |
| ":ffx_profile_memory_components_args", | |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_rust_fdomain", | |
| "//sdk/fidl/fuchsia.memory.attribution.plugin:fuchsia.memory.attribution.plugin_rust_fdomain", | |
| "//sdk/rust/zx-types", | |
| "//src/developer/ffx/lib/errors:lib", | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/target/holders:lib", | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/lib/assembly/assembled_system", | |
| "//src/lib/assembly/container", | |
| "//src/lib/fdomain/client", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/performance/memory/attribution/processing", | |
| "//src/storage/fxfs/platform:constants", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:chrono", | |
| "//third_party/rust_crates:csv", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:prettytable-rs", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:zstd", | |
| ] + | |
| [ | |
| "//third_party/rust_crates:pretty_assertions", | |
| "//third_party/rust_crates:rustc-hash", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx:*", | |
| ] | |
| } | |
| } |