• Home
  • History
  • Annotate
Name
Date
Size
#Lines
LOC

..--

cpufreq/14-Jan-2024-201110

parser/15-Dec-2024-1,4751,227

Android.bpD15-Dec-20241.5 KiB5853

OWNERSD14-Jan-202439 22

README.mdD14-Jan-2024742 2921

README.md

1# CarWatchdog's Performance Analysis Tools
2
3## Performance Stats Parser
4The `parser/` directory contains the scripts to parse CarWatchdog daemon's dumps
5and generate a protobuf binary with the performance stats. The proto format is
6available in `parser/performancestats.proto`.
7
8### Make the parser
9
10```bash
11m perf_stats_parser
12```
13
14### Generate protobuf binary
15To generate the proto binary for the CarWatchdog performance stats, run:
16```bash
17perf_stats_parser -f <file-with-dump>.txt -o ~/perf_stats_out.pb
18```
19
20The proto binary will be saved to `~/perf_stats_out.pb`.
21
22### Read the protobuf binary
23To read the protobuf binary, one could use:
24
25```bash
26perf_stats_parser -r <proto-file> -D -j
27```
28
29`-j` flags specify to output in JSON format.