Files
Web-Page-Performance-Test/remote-debug.ps1
DeNNiiInc 4aa890da6f Add Waterfall Chart & Request Inspector
Features Added:
- Interactive waterfall timeline visualization
- Color-coded timing bars (DNS, Connect, SSL, TTFB, Download)
- Request filtering by resource type (HTML, JS, CSS, Images, Fonts)
- Detailed request inspector dialog with timing breakdown
- HAR data extraction from Lighthouse results
- Size/compression metrics display
- Third-party resource identification
- Render-blocking resource detection

Technical Implementation:
- Created lib/har-parser.js for network data extraction
- Built waterfall.html with SVG-based timeline renderer
- Added waterfall.js with interactive controls
- Integrated HAR generation into test runner workflow
- Updated main UI with View Waterfall link
2025-12-28 01:32:27 +11:00

26 lines
765 B
PowerShell

$Server = "172.16.69.219"
$User = "root"
$Pass = "Q4dv!Z`$nCe#`$OT&h"
function Remote-Exec {
param($Cmd)
echo "Running: $Cmd"
plink -batch -pw "$Pass" "$User@$Server" $Cmd
}
echo "--- 1. Checking Disk Space ---"
Remote-Exec "df -h"
echo "--- 2. Checking Node Version ---"
Remote-Exec "node -v && npm -v"
echo "--- 3. Re-installing Dependencies (Verbose) ---"
Remote-Exec "cd /var/www/web-page-performance-test && npm install --verbose"
echo "--- 4. Manual Server Start (Crash Test) ---"
# Run for 5 seconds then kill, or catch crash output
Remote-Exec "cd /var/www/web-page-performance-test && timeout 5s node server.js || echo 'Crash Detected'"
echo "--- 5. Service Status ---"
Remote-Exec "systemctl status web-page-performance-test --no-pager"