Rabbit-R1/switch port/java/sources/io/sentry/JavaMemoryCollector.java
2024-05-21 17:08:36 -04:00

15 lines
586 B
Java

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()));
}
}