7
7
import argparse
8
8
9
9
from executorch .sdk import Inspector
10
- from executorch .sdk .inspector ._inspector_utils import compare_results
10
+ from executorch .sdk .inspector ._inspector_utils import compare_results , TimeScale
11
11
12
12
13
13
def main () -> None :
@@ -17,6 +17,20 @@ def main() -> None:
17
17
required = True ,
18
18
help = "Provide an ETDump file path." ,
19
19
)
20
+ parser .add_argument (
21
+ "--source_time_scale" ,
22
+ type = str ,
23
+ choices = [ts .value for ts in TimeScale ],
24
+ help = "Enter the source time scale (ns, us, ms, s, cycles)" ,
25
+ default = TimeScale .NS .value ,
26
+ )
27
+ parser .add_argument (
28
+ "--target_time_scale" ,
29
+ type = str ,
30
+ choices = [ts .value for ts in TimeScale ],
31
+ help = "Enter the target time scale (ns, us, ms, s, cycles)" ,
32
+ default = TimeScale .MS .value ,
33
+ )
20
34
parser .add_argument (
21
35
"--etrecord_path" ,
22
36
required = False ,
@@ -35,6 +49,8 @@ def main() -> None:
35
49
etdump_path = args .etdump_path ,
36
50
etrecord = args .etrecord_path ,
37
51
debug_buffer_path = args .debug_buffer_path ,
52
+ source_time_scale = TimeScale (args .source_time_scale ),
53
+ target_time_scale = TimeScale (args .target_time_scale ),
38
54
)
39
55
inspector .print_data_tabular ()
40
56
if args .compare_results :
0 commit comments