Rabbit-R1/switch port/java/sources/io/sentry/JavaMemoryCollector.java

16 lines
586 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package io.sentry;
/* loaded from: classes3.dex */
public final class JavaMemoryCollector implements IPerformanceSnapshotCollector {
private final Runtime runtime = Runtime.getRuntime();
@Override // io.sentry.IPerformanceSnapshotCollector
public void setup() {
}
@Override // io.sentry.IPerformanceSnapshotCollector
public void collect(PerformanceCollectionData performanceCollectionData) {
performanceCollectionData.addMemoryData(new MemoryCollectionData(System.currentTimeMillis(), this.runtime.totalMemory() - this.runtime.freeMemory()));
}
}