1 | static int timedGC_minPrint = 5000; // print notice to console when GC takes longer than these many ms |
2 | |
3 | static void timedGC() {
|
4 | long time = sysNow(), start = now(); |
5 | gc_notTooOften(); |
6 | done2_systemErr_minPrint = timedGC_minPrint; |
7 | done2_systemErr(time, "GC " + hmsWithColons(start)); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006289 |
| Snippet name: | timedGC - gc() and show when and the time taken |
| Eternal ID of this version: | #1006289/4 |
| Text MD5: | a0775fad96e674e9d95226210529ab55 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-22 08:52:41 |
| Source code size: | 297 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 912 / 907 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |