sS gcRenderChangesInUsedMemory(GcInfo info) { Map<S, MemoryUsage> map1 = info.getMemoryUsageBeforeGc(); Map<S, MemoryUsage> map2 = info.getMemoryUsageAfterGc(); new L<S> changes; for (S pool, MemoryUsage after : map2) { MemoryUsage before = map1.get(pool); if (before == null) continue; long change = after.getUsed()-before.getUsed(); if (change != 0) changes.add(pool + ": " + toK(change) + " K"); } ret joinWithComma(changes); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016698 |
Snippet name: | gcRenderChangesInUsedMemory |
Eternal ID of this version: | #1016698/1 |
Text MD5: | e718cc653713e9d1e9e871938f0a7fc3 |
Author: | stefan |
Category: | javax / gc / monitoring |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-28 14:24:14 |
Source code size: | 480 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 359 / 382 |
Referenced in: | [show references] |