blob: 9f5cb4e76abeda0dd8f12cd4a9f4bda6af3996a5 [file]
# 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.
group("tests") {
testonly = true
public_deps = [ ":pprof_tests" ]
}
## 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")
rust_proto_library("pprof_proto") {
sources = [ "//third_party/perfetto/protos/third_party/pprof/profile.proto" ]
packages = [ "perfetto.third_party.perftools.profiles" ]
}
rustc_library("pprof") {
sources = [
"src/lib.rs",
"src/module_map.rs",
"src/string_table.rs",
]
edition = "2024"
visibility = [
":*",
"//src/developer/ffx/plugins/profile/heapdump:*",
"//src/developer/ffx/plugins/profile/heapdump/common:*",
"//src/memory/tools/dupefinder:*",
]
deps = [
":pprof_proto",
"//src/memory/lib/index_table_builder",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:thiserror",
]
}
rustc_test("pprof_test") {
sources = [
"src/lib.rs",
"src/module_map.rs",
"src/string_table.rs",
]
edition = "2024"
deps = [
":pprof_proto",
"//src/memory/lib/index_table_builder",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:thiserror",
] + [ "//third_party/rust_crates:itertools" ]
}
fuchsia_unittest_package("pprof_tests") {
package_name = "pprof_tests-gn"
component_name = "pprof_tests"
deps = [ ":pprof_test" ]
}