Skip to content

DFMichelangelo/memory-sampler-logger

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages