public class MemoryTracker extends Object implements MMapListener, Closeable
| Constructor and Description |
|---|
MemoryTracker(Emulator<?> emulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<AllocationRecord> |
getLeaks() |
int |
getTotalAllocations() |
int |
getTotalDeallocations() |
long |
getTotalLeakedSize() |
void |
onMap(long address,
long size,
int perms) |
int |
onProtect(long address,
long size,
int perms) |
void |
onUnmap(long address,
long size) |
void |
printReport() |
void |
printReport(PrintStream out) |
public MemoryTracker(Emulator<?> emulator)
public void onMap(long address,
long size,
int perms)
onMap in interface MMapListenerpublic int onProtect(long address,
long size,
int perms)
onProtect in interface MMapListenerpublic void onUnmap(long address,
long size)
onUnmap in interface MMapListenerpublic List<AllocationRecord> getLeaks()
public int getTotalAllocations()
public int getTotalDeallocations()
public long getTotalLeakedSize()
public void printReport()
public void printReport(PrintStream out)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2026. All rights reserved.