ruby-changes:62409
From: Simon <ko1@a...>
Date: Tue, 28 Jul 2020 12:13:54 +0900 (JST)
Subject: [ruby-changes:62409] 09e9f7cf7a (master): [DOC] Clarify ObjectSpace return values are in bytes [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=09e9f7cf7a From 09e9f7cf7a1e882c9bd199f93b8dcf933a6ae631 Mon Sep 17 00:00:00 2001 From: Simon Perepelitsa <sema@s...> Date: Fri, 10 Jul 2020 22:38:32 +0300 Subject: [DOC] Clarify ObjectSpace return values are in bytes [ci skip] diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index a3f3ef4..a9b1e64 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -28,7 +28,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L28 * 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) https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L81 * 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. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/