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

5
LINES

< > BotCompany Repo | #1032018 // mapStats - including size in memory

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3836L) is out of date.

sS mapStats(S name default "", Map map) {
  ret appendColonIfNempty(name)
    + (map == null ? "-" : shortClassName(map) + " of size " + n2(map)
      + " (" + toKB_str(guessObjectSize(map)) + ")");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032018
Snippet name: mapStats - including size in memory
Eternal ID of this version: #1032018/2
Text MD5: 096f6822e08cc3207ef43d861ab4131f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 02:24:47
Source code size: 204 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 168 / 222
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)