File tree Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,17 @@ dependencies=[
12
12
" hypothesis" ,
13
13
" numpy" ,
14
14
" packaging" ,
15
+ " pandas" ,
15
16
" parameterized" ,
16
17
" pytest" ,
17
18
" pytest-xdist" ,
18
19
" pyyaml" ,
19
20
" ruamel.yaml" ,
20
21
" sympy" ,
22
+ " tabulate" ,
21
23
" tomli" ,
22
24
" zstd" ,
25
+
23
26
]
24
27
25
28
[tool .setuptools .package-data ]
Original file line number Diff line number Diff line change
1
+ load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
1
2
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2
3
3
4
oncall("executorch")
@@ -20,6 +21,12 @@ python_library(
20
21
],
21
22
)
22
23
24
+ python_binary(
25
+ name = "inspector_cli",
26
+ main_src = "inspector_cli.py",
27
+ deps = [":inspector"],
28
+ )
29
+
23
30
python_library(
24
31
name = "inspector_utils",
25
32
srcs = [
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the BSD-style license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ import argparse
8
+
9
+ from executorch .sdk .etdb .inspector import Inspector
10
+
11
+ if __name__ == "__main__" :
12
+ parser = argparse .ArgumentParser ()
13
+ parser .add_argument (
14
+ "--etdump_path" ,
15
+ required = True ,
16
+ help = "Provide an ETDump file path." ,
17
+ )
18
+ parser .add_argument (
19
+ "--etrecord_path" ,
20
+ required = False ,
21
+ help = "Provide an optional ETRecord file path." ,
22
+ )
23
+
24
+ args = parser .parse_args ()
25
+
26
+ inspector = Inspector (
27
+ etdump_path = args .etdump_path , etrecord_path = args .etrecord_path
28
+ )
29
+ inspector .print_data_tabular ()
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def run(self):
57
57
"executorch/backends" : "backends" ,
58
58
"executorch/exir" : "exir" ,
59
59
"executorch/schema" : "schema" ,
60
+ "executorch/sdk" : "sdk" ,
60
61
"executorch/extension" : "extension" ,
61
62
"executorch/bundled_program" : "bundled_program" ,
62
63
"tosa" : "backends/arm/third-party/serialization_lib/python/tosa" ,
You can’t perform that action at this time.
0 commit comments