Files
MobileGL/tools/device_bench/disagg/run_profile_batch.sh
T
swung0x48 141227e8ba [Feat] (tools): add the disaggregated-mode device perf matrix and profiling harness
run_matrix.sh drives interleaved monolith/inproc/spawn+shm/spawn+tcp
benchmark rounds on an adb device with per-run arm-marker verification;
profile_matrix.sh layers simpleperf, ftrace wakeup capture and a /proc
sampler on top; make_report.py aggregates runs into REPORT.md. The wifi
kit carries the cross-host control-plane hang repro and phone-side
strace/fd-reconcile helpers. .trace-work/ (run output) is now ignored.
2026-09-28 19:36:30 -04:00

29 lines
910 B
Bash

#!/usr/bin/env bash
# Batch profile runs for the MobileGL split-mode attribution report.
# Sequential: the device is exclusive. Each run = one arm with PROF=1.
set -u
export MSYS_NO_PATHCONV=1 MSYS2_ARG_CONV_EXCL='*'
cd "$(dirname "$0")"
run() {
local wl="$1" arm="$2" rep="$3" spin="${4:-}"
echo "===== RUN wl=$wl arm=$arm rep=$rep spin=$spin $(date +%T) ====="
if [ -n "$spin" ]; then
PROF=1 ONE="$arm" WL="$wl" REP="$rep" \
EXTRA_ENV=";MOBILEGL_IPC_SPIN_US=$spin" \
EXTRA_SERVER_ENV="MOBILEGL_IPC_SPIN_US=$spin" \
bash profile_matrix.sh one || echo "RUN FAILED $wl/$arm/$rep"
else
PROF=1 ONE="$arm" WL="$wl" REP="$rep" \
bash profile_matrix.sh one || echo "RUN FAILED $wl/$arm/$rep"
fi
}
run rd12 monolith 92
run rd12 inproc 93
run rd12 shm 94
run rd12 tcp 95 2000
run openra monolith 96
run openra inproc 97
echo "===== ALL DONE $(date +%T) ====="