Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 553 Bytes

File metadata and controls

33 lines (24 loc) · 553 Bytes

Memory Sampler

Java agent for tracking memory allocations with stack traces.

Quick Start

./gradlew runWithAgent
./gradlew runExample

API

MemorySampler.start();        // Begin tracking
// your allocation code here
MemorySampler.end();          // Stop tracking  
MemorySampler.printSituation(); // Print report

Features

  • Real-time allocation tracking
  • Stack trace capture (5 levels)
  • Thread-safe concurrent tracking
  • Accurate object size measurement

Build

./gradlew build
./gradlew agentJar