Self-aware applications: automatic production monitoring
summary
Uses Windows ETW sampling (default ~100ms) plus performance counters to detect anomalies, then triggers an intensive mode after three consecutive violations and collects ~5s of samples via the open-source live-stacks binder, and inspects heaps with the CLRMD library. Demos show an 80%/19% CPU threshold flow that pinpoints a Gmail‑hash function as the hotspot, allocation profiling tying spikes to string concatenation, leak snapshots (three heap snapshots) revealing large byte[] kept in a static list, and a deadlock caused by inverted lock order.
AI-written summary · about
