Advanced
Process Monitoring
Process Monitoring
DevDock uses pidusage and pidtree to provide accurate, real-time resource monitoring for each service.
Metrics Collected
- CPU Usage: Percentage of CPU time used by the service and its child processes
- Memory Usage: Resident Set Size (RSS) memory consumption in MB
- Process Tree: Complete tree of child processes spawned by the service
- Uptime: Duration since the service was last started
How It Works
Service Process (PID 1234)
├── Node.js (PID 1235)
│ ├── Webpack (PID 1236)
│ └── Dev Server (PID 1237)
└── File Watcher (PID 1238)
DevDock monitors the entire process tree, not just the root process. This gives you accurate resource usage even for services that spawn multiple child processes (which is common with tools like Webpack, Vite, and others).
Polling Interval
Resource metrics are collected every 2 seconds by default. This provides a good balance between accuracy and performance overhead.