Trace guidance session timing and runner resource pressure
creative browser diagnosis / diagnose (push) Successful in 4m33s

This commit is contained in:
2026-10-30 23:24:10 +08:00
parent efdfb6a2ff
commit 159da3e1f1
4 changed files with 17 additions and 6 deletions
+3
View File
@@ -16,6 +16,9 @@ if [[ "${CREATIVE_BROWSER_DIAGNOSTICS:-}" == "1" ]]; then COMPOSE_FILES+=(-f com
compose(){ docker compose -p "$COMPOSE_PROJECT_NAME" --env-file "$TEST_ENV" "${COMPOSE_FILES[@]}" "$@"; }
diagnostic_state(){
if [[ "${CREATIVE_BROWSER_DIAGNOSTICS:-}" != "1" ]]; then return; fi
for metric in /proc/pressure/cpu /proc/pressure/memory /proc/pressure/io; do
if [[ -r "$metric" ]]; then echo "$metric"; cat "$metric"; fi
done
local ids
ids=$(compose ps -aq)
if [[ -n "$ids" ]]; then