33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
#!/bin/bash
|
|
if [ -f /var/www/html/api/playwright-v94-real-authed.json ]; then
|
|
stat -c "file ts: %y" /var/www/html/api/playwright-v94-real-authed.json
|
|
cat /var/www/html/api/playwright-v94-real-authed.json | python3 -c "
|
|
import json, sys
|
|
d = json.load(sys.stdin)
|
|
for p in d:
|
|
print(f'=== {p.get(\"page\")} ===')
|
|
if 'err' in p:
|
|
print(f' ERR: {p[\"err\"]}')
|
|
continue
|
|
diag = p.get('diag', {})
|
|
print(f' is_login: {diag.get(\"is_login\")}')
|
|
print(f' body_len: {diag.get(\"body_len\")}')
|
|
print(f' canvas/svg/div: {diag.get(\"canvas_count\")}/{diag.get(\"svg_count\")}/{diag.get(\"div_count\")}')
|
|
print(f' AG: {diag.get(\"AG_length\",0)} (dead={diag.get(\"AG_dead\",0)} noact={diag.get(\"AG_no_actions\",0)})')
|
|
print(f' DP: {diag.get(\"DP_length\",0)}')
|
|
arrs = diag.get('data_arrays_big', {})
|
|
if arrs:
|
|
# Top 3 arrays by length
|
|
top = sorted(arrs.items(), key=lambda x: -x[1]['len'])[:3]
|
|
for name, info in top:
|
|
print(f' {name}: {info[\"len\"]} items (keys: {info[\"sample_keys\"]})')
|
|
if p.get('errs'):
|
|
print(f' errs[{len(p[\"errs\"])}]: {p[\"errs\"][:2]}')
|
|
print()
|
|
"
|
|
else
|
|
echo "Not finished yet. Videos folder:"
|
|
ls -la /tmp/v94-real-videos/ 2>/dev/null
|
|
ls -la /tmp/v94-real-*.png 2>/dev/null | head -5
|
|
fi
|