Skip to content

Commit

Permalink
upgrade jamm library (memory meter)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Jul 22, 2023
1 parent 47fa0e1 commit 1640b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.stream.IntStream;

import org.github.jamm.MemoryMeter;
import org.github.jamm.MemoryMeter.Guess;

import com.google.common.base.Functions;
import com.google.common.cache.CacheBuilder;
Expand Down Expand Up @@ -55,9 +54,7 @@ public final class MemoryBenchmark {
static final ImmutableMap<Integer, Integer> workingSet = IntStream.range(0, FUZZY_SIZE)
.boxed().collect(toImmutableMap(identity(), i -> -i));

final MemoryMeter meter = new MemoryMeter()
.withGuessing(Guess.FALLBACK_BEST)
.ignoreKnownSingletons();
final MemoryMeter meter = MemoryMeter.builder().build();

public void run() {
if (!MemoryMeter.hasInstrumentation()) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jackrabbit = "1.52.0"
jackson = "2.15.2"
jacoco = "0.8.10"
jakarta-inject = "2.0.1"
jamm = "0.3.3"
jamm = "0.4.0"
java-object-layout = "0.17"
javapoet = "1.13.0"
jcache = "1.1.1"
Expand Down

0 comments on commit 1640b25

Please sign in to comment.