Skip to content

Instantly share code, notes, and snippets.

@jerolba
Created March 19, 2019 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerolba/c4c6468cdd7985714cbee2de8ce5653d to your computer and use it in GitHub Desktop.
Save jerolba/c4c6468cdd7985714cbee2de8ce5653d to your computer and use it in GitHub Desktop.
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