Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
cpufreq/ | 14-Jan-2024 | - | 201 | 110 | ||
parser/ | 15-Dec-2024 | - | 1,475 | 1,227 | ||
Android.bp | D | 15-Dec-2024 | 1.5 KiB | 58 | 53 | |
OWNERS | D | 14-Jan-2024 | 39 | 2 | 2 | |
README.md | D | 14-Jan-2024 | 742 | 29 | 21 |
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.