// instr.h — instrumentation features for leakfix.dll #pragma once namespace leakfix { // Install SetUnhandledExceptionFilter so any unhandled native exception // writes a clean minidump to leakfix_crash__.dmp next // to the DLL, then chains to Windows' default handling. void instr_install_crash_handler(); // Start a background thread that scans memory every 5 minutes, // counts known leak-class vtable instances, and appends a one-line // summary to leakfix.log. void instr_start_periodic_scan(); // Stop the periodic scan thread (called from DLL_PROCESS_DETACH). void instr_stop_periodic_scan(); } // namespace leakfix