1 | static void printCachedPainterSize() { |
2 | Class cp = getClass("sun.swing.CachedPainter"); |
3 | Map cacheMap = cast get(cp, "cacheMap"); |
4 | print("CachedPainter map size: " + l(cacheMap)); |
5 | for (O key : keys(cacheMap)) { |
6 | O imageCache = cacheMap.get(key); |
7 | int maxCount = cast get(imageCache, "maxCount"); |
8 | L entries = cast get(imageCache, "entries"); |
9 | print(" Key: " + key + ", entries: " + l(entries) + ", maxCount: " + maxCount); |
10 | } |
11 | } |
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: | 537 / 536 |
Referenced in: | [show references] |