Description
Profiles Ruby memory allocations and reports where objects are created. It is useful for reducing memory use, finding allocation-heavy code, and investigating leaks.
Profiling changes runtime cost and can reveal internal code or data. Use representative workloads, keep reports private, and compare before-and-after measurements carefully.