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

4
LINES

< > BotCompany Repo | #1029313 - printRecursiveSizeOfFields

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

Libraryless. Click here for Pure Java version (3661L/24K).

svoid printRecursiveSizeOfFields(O o) ctex {
  for (Field field : nonStaticNonPrimitiveFieldObjects(o))
    print(field.getName() + ": " + n2(recursiveObjectSize(field.get(o))));
}

download  show line numbers  debug dex   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029313
Snippet name: printRecursiveSizeOfFields
Eternal ID of this version: #1029313/3
Text MD5: 431180e1f727bf1c4e7da1856ac8a829
Transpilation MD5: 362b163387dac9073dab27d75d7e3cfd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-31 00:41:55
Source code size: 185 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 12 / 34
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1029313 & http://1029313.tinybrain.de