Created
March 19, 2019 19:46
-
-
Save jerolba/c4c6468cdd7985714cbee2de8ce5653d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MemoryHistogram diff = Histogramer.getDiff(() -> { | |
HashMap<Integer, String> map = new HashMap<>(); | |
for (int i = 0; i < 10000; i++) { | |
map.put(i, "" + i); | |
} | |
return new ArrayList<>(map.values()); | |
}); | |
System.out.println(diff); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment