Peeking into Ruby: Tracing Running Code
summary
Shows concrete wins: run estrace to capture syscalls and find the exact failing open that returns “no such file or directory,” attach RB trace to a live process to log method calls and spot clustered GCs that pause the VM, and inspect packets with TCP dump to prove connection reuse cuts ~24 negotiation packets down to ~15 for subsequent requests. Examples live in a repo with Dockerfiles so the reproductions start and work locally, and each technique reports precise traces and return values.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:36Overview
- 2:09Case 1 Missing config file
- 5:53What are syscalls
- 8:12Looking for landmarks
- 11:27Finding unused methods
- 19:20Delicate negotiations
- 22:26TCP Dump
- 29:22Conclusion








