proclogd: reduce the size of the procLog message by nearly half (#21800)

* cp msg to remove the space

* no orphans

* cleanup

* parse using istringstream

* add test

* split files

* cleanup

* add parser.cc to files_common

* add test for build message

* use > 0

* cleanup

* test proc/self/stat

* more test

* dd

* fix bug

* update test

* refactor pidStat

* cleanup

* test exe

* check procs size in message

* rename pidStat->ProcStat

* don't use util::format_string

* robust pids()

* catch conversion exception

* fix softirq

* udpate test

* use istringstream

* use REQUIRE_THAT&cleanup

* reserve vector of procStats

* use istream to parse cmdline

* cleanup
old-commit-hash: d0fa98931b22d60e0e70a54d683905d8b34ffb10
This commit is contained in:
Dean Lee
2021-08-05 17:27:02 +08:00
committed by GitHub
parent 6f090bf646
commit ee8b53a7e8
9 changed files with 456 additions and 235 deletions
+1
View File
@@ -214,6 +214,7 @@ jobs:
$UNIT_TEST selfdrive/thermald && \
$UNIT_TEST tools/lib/tests && \
./selfdrive/common/tests/test_util && \
./selfdrive/proclogd/tests/test_proclog && \
./selfdrive/camerad/test/ae_gray_test"
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -v -F unit_tests