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:
parent
db0eab1c6f
commit
09e9f7cf7a
Notes:
git
2020-07-28 12:14:03 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ObjectSpace.memsize_of(obj) -> Integer
|
* 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
|
* 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
|
* 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:
|
* call-seq:
|
||||||
* ObjectSpace.memsize_of_all([klass]) -> Integer
|
* 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
|
* If +klass+ (should be Class object) is given, return the total memory size
|
||||||
* of instances of the given class.
|
* of instances of the given class.
|
||||||
|
|
Loading…
Reference in a new issue