All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sentry.MemoryCollectionData Maven / Gradle / Ivy

There is a newer version: 8.0.0-rc.4
Show newest version
package io.sentry;

import org.jetbrains.annotations.ApiStatus;

@ApiStatus.Internal
public final class MemoryCollectionData {
  final long timestampMillis;
  final long usedHeapMemory;
  final long usedNativeMemory;

  public MemoryCollectionData(
      final long timestampMillis, final long usedHeapMemory, final long usedNativeMemory) {
    this.timestampMillis = timestampMillis;
    this.usedHeapMemory = usedHeapMemory;
    this.usedNativeMemory = usedNativeMemory;
  }

  public MemoryCollectionData(final long timestampMillis, final long usedHeapMemory) {
    this(timestampMillis, usedHeapMemory, -1);
  }

  public long getTimestampMillis() {
    return timestampMillis;
  }

  public long getUsedHeapMemory() {
    return usedHeapMemory;
  }

  public long getUsedNativeMemory() {
    return usedNativeMemory;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy