diff options
author | Simon Perepelitsa <[email protected]> | 2020-07-10 22:38:32 +0300 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-07-28 12:13:40 +0900 |
commit | 09e9f7cf7a1e882c9bd199f93b8dcf933a6ae631 (patch) | |
tree | 4f83b6f27255d27da1f0463623c212b356a23835 /ext/objspace/objspace.c | |
parent | db0eab1c6f6612b5f49b79918be2ff55b2196352 (diff) |
[DOC] Clarify ObjectSpace return values are in bytes [ci skip]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3308
Diffstat (limited to 'ext/objspace/objspace.c')
-rw-r--r-- | ext/objspace/objspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index a3f3ef4845..a9b1e64183 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -28,7 +28,7 @@ * call-seq: * ObjectSpace.memsize_of(obj) -> Integer * - * Return consuming memory size of obj. + * Return consuming memory size of obj in bytes. * * Note that the return size is incomplete. You need to deal with this * information as only a *HINT*. Especially, the size of +T_DATA+ may not be @@ -81,7 +81,7 @@ total_i(void *vstart, void *vend, size_t stride, void *ptr) * call-seq: * ObjectSpace.memsize_of_all([klass]) -> Integer * - * Return consuming memory size of all living objects. + * Return consuming memory size of all living objects in bytes. * * If +klass+ (should be Class object) is given, return the total memory size * of instances of the given class. |