Co-authored-by: Comma Device <device@comma.ai>
pull/22941/head^2
Adeeb Shihadeh 3 years ago committed by GitHub
parent 819b7a120a
commit b51da61dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      selfdrive/debug/profiling/perfetto/.gitignore
  2. 11
      selfdrive/debug/profiling/perfetto/build.sh
  3. 6
      selfdrive/debug/profiling/perfetto/copy.sh
  4. 8
      selfdrive/debug/profiling/perfetto/record.sh
  5. 6
      selfdrive/debug/profiling/perfetto/server.sh
  6. 5
      selfdrive/debug/profiling/perfetto/traces.sh

@ -0,0 +1,7 @@
trace_*
tracebox
trace_processor
perfetto/
configs/

@ -0,0 +1,11 @@
#!/usr/bin/bash
if [ ! -d perfetto ]; then
git clone https://android.googlesource.com/platform/external/perfetto/
fi
cd perfetto
tools/install-build-deps --linux-arm
tools/gn gen --args='is_debug=false target_os="linux" target_cpu="arm64"' out/linux
tools/ninja -C out/linux tracebox traced traced_probes perfetto

@ -0,0 +1,6 @@
#!/usr/bin/bash
DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto
scp -r perfetto/out/linux/tracebox $DEST
scp -r perfetto/test/configs $DEST

@ -0,0 +1,8 @@
#!/usr/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
OUT=trace_
sudo ./tracebox -o $OUT --txt -c configs/scheduling.cfg
sudo chown $USER:$USER $OUT

@ -0,0 +1,6 @@
#!/usr/bin/bash
curl -LO https://get.perfetto.dev/trace_processor
chmod +x ./trace_processor
./trace_processor --httpd

@ -0,0 +1,5 @@
#!/usr/bin/bash
DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto
scp tici:/data/openpilot/selfdrive/debug/profiling/perfetto/trace_* .
Loading…
Cancel
Save