static void printCachedPainterSize() { Class cp = getClass("sun.swing.CachedPainter"); Map cacheMap = cast get(cp, "cacheMap"); print("CachedPainter map size: " + l(cacheMap)); for (O key : keys(cacheMap)) { O imageCache = cacheMap.get(key); int maxCount = cast get(imageCache, "maxCount"); L entries = cast get(imageCache, "entries"); print(" Key: " + key + ", entries: " + l(entries) + ", maxCount: " + maxCount); } }
Began life as a copy of #1008239
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008241 |
Snippet name: | printCachedPainterSize |
Eternal ID of this version: | #1008241/1 |
Text MD5: | 4a12a360ce92ca34d952d2cc2a84a9c5 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-02 04:34:16 |
Source code size: | 456 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 536 / 535 |
Referenced in: | [show references] |