xref: /aosp_15_r20/external/executorch/profiler/TARGETS (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1# Any targets that should be shared between fbcode and xplat must be defined in
2# targets.bzl. This file can contain fbcode-only targets.
3
4load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
5
6oncall("executorch")
7
8runtime.python_library(
9    name = "parse_profiler_library",
10    srcs = [
11        "parse_profiler_results.py",
12        "profiler_results_cli.py",
13    ],
14    base_module = "executorch.profiler",
15    visibility = ["@EXECUTORCH_CLIENTS"],
16    external_deps = ["prettytable"],
17)
18
19runtime.python_library(
20    name = "profiler_results_cli_lib",
21    srcs = [
22        "profiler_results_cli.py",
23    ],
24    base_module = "executorch.profiler",
25    deps = [
26        ":parse_profiler_library",
27    ],
28)
29
30runtime.python_binary(
31    name = "profiler_results_cli",
32    main_function = "executorch.profiler.profiler_results_cli.invoke_main",
33    deps = [
34        ":profiler_results_cli_lib",
35    ],
36)
37