1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Clarify ObjectSpace return values are in bytes [ci skip]

This commit is contained in:
Simon Perepelitsa 2020-07-10 22:38:32 +03:00 committed by Hiroshi SHIBATA
parent db0eab1c6f
commit 09e9f7cf7a
Notes: git 2020-07-28 12:14:03 +09:00

View file

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