Debugging
Core Dump
- Capture of memory of the process and storing in a file for later analysis
- Memory was called core in earlier days
Crash
- Failure in the kernel
- When crash happens
- error info is saved in a log file
- memory state is saved in a crash dump
Tracing and Profiling
| Purpose | Linux | macOS | Windows |
|---|
| System calls | strace | dtruss | Process Monitor |
| Dynamic Tracing | eBPF | DTrace | Event Tracing for Windows (ETW) |
| Performance Tracing | perf | Instruments | Performance Profiler |
Monitoring
| Purpose | Linux | macOS | Windows |
|---|
| Process monitoring | top, htop | Activity Monitor | Task Manager |
| CPU / Memory | vmstat | Activity Monitor | Task Manager / Resource Monitor |
| Disk I/O | iostat | Activity Monitor | Resource Monitor |
| Network | ss, ip | Activity Monitor | Resource Monitor |