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).

!7

module ModuleRAMSizes extends DynObjectTable<Map> {
  start {
    doEveryAndNow(60.0, r calcIt);
  }
  
  void calcIt {
    temp enter();
    new L<Map> l;
    time "Calculate Module Sizes" {
      for (O mod : dm_listModules()) {
        S size = "?";
        pcall-short { size = toK(dm_moduleSize(mod)) + " K"; }
        l.add(litorderedmap(
          Name := dm_moduleName(mod),
          Size := size));
      }
    }
    setData(sortedByFieldAlphaNumDesc('Size, l));
  }
}

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: 287 / 412
Version history: 3 change(s)
Referenced in: [show references]