Created
July 31, 2019 06:13
-
-
Save watermouth/30a179224702bfd9016cbd7a7d116cf8 to your computer and use it in GitHub Desktop.
R メモリ使用量調査用便利関数
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # utility functions | |
| Msize <- function(x) | |
| as.integer(object.size(x)) / 1e6 | |
| listMsize <- | |
| function(v) | |
| sort(sapply(v, function(x) | |
| Msize(get(x))), decreasing = T) | |
| # listMsize(ls()) などとする |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment