Variable size/Get: Difference between revisions
→Lisp Object Size: Mention pprof.
(→Lisp Object Size: Mention pprof.) |
|||
Line 1,198:
The <code>"foobar"</code> string requires 28 bytes of <code>malloc</code> memory (7 wide characters including a terminating null). The heap entry takes 16 bytes.
**Note:** the <code>pprof</code> macro ("pretty prof") will gather and print these values in a nice way on the <code>*stdout*</code> stream:
<pre>2> (pprof (copy "foobar"))
malloc bytes: 28
gc heap bytes: 16
total: 44
milliseconds: 0
"foobar"</pre>
====FFI====
|