Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1018920 // Module RAM Sizes

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (15745L/111K).

1  
!7
2  
3  
module ModuleRAMSizes extends DynObjectTable<Map> {
4  
  start {
5  
    doEveryAndNow(60.0, r calcIt);
6  
  }
7  
  
8  
  void calcIt {
9  
    temp enter();
10  
    new L<Map> l;
11  
    time "Calculate Module Sizes" {
12  
      for (O mod : dm_listModules()) {
13  
        S size = "?";
14  
        pcall-short { size = toK(dm_moduleSize(mod)) + " K"; }
15  
        l.add(litorderedmap(
16  
          Name := dm_moduleName(mod),
17  
          Size := size));
18  
      }
19  
    }
20  
    setData(sortedByFieldAlphaNumDesc('Size, l));
21  
  }
22  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018920
Snippet name: Module RAM Sizes
Eternal ID of this version: #1018920/4
Text MD5: 418562f373e806fb06912c9cbf9356c2
Transpilation MD5: b4284a6074e373ba11a800c3507cc3e6
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-15 23:59:57
Source code size: 503 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 289 / 415
Version history: 3 change(s)
Referenced in: [show references]