E
Eric Wong
mall version 0.0.1 has been released!
* <http://bogomips.org/mall>
This library provides access to the mallinfo(3) and mallopt(3)
functions. mallinfo(3) is used for reporting malloc statistics and
mallopt(3) can be used to tune malloc(3) implementations. See the
corresponding documentation for the C library functions before
proceeding.
These functions are implementation-specific, so tuning options that
work for one implementation of malloc may not work at all for another
implementation.
Constants defined in the the malloc.h header with a "M_" prefix are
defined without the prefix in the Mall namespace (e.g.
M_TRIM_THRESHOLD => Mall::TRIM_THRESHOLD).
== Synopsis
# Assuming a glibc/ptmalloc system:
require 'mall'
Mall.opt(Mall::TRIM_THRESHOLD, 1024*1024)
Mall.opt(Mall::TOP_PAD, 1024*1024)
Mall.opt(Mall::MXFAST, 80)
hash = Mall.info
== git repository
git://git.bogomips.org/mall.git
http://git.bogomips.org/mall.git
== cgit viewer
* http://git.bogomips.org/cgit/mall.git (cgit)
License: LGPLv3
* <http://bogomips.org/mall>
This library provides access to the mallinfo(3) and mallopt(3)
functions. mallinfo(3) is used for reporting malloc statistics and
mallopt(3) can be used to tune malloc(3) implementations. See the
corresponding documentation for the C library functions before
proceeding.
These functions are implementation-specific, so tuning options that
work for one implementation of malloc may not work at all for another
implementation.
Constants defined in the the malloc.h header with a "M_" prefix are
defined without the prefix in the Mall namespace (e.g.
M_TRIM_THRESHOLD => Mall::TRIM_THRESHOLD).
== Synopsis
# Assuming a glibc/ptmalloc system:
require 'mall'
Mall.opt(Mall::TRIM_THRESHOLD, 1024*1024)
Mall.opt(Mall::TOP_PAD, 1024*1024)
Mall.opt(Mall::MXFAST, 80)
hash = Mall.info
== git repository
git://git.bogomips.org/mall.git
http://git.bogomips.org/mall.git
== cgit viewer
* http://git.bogomips.org/cgit/mall.git (cgit)
License: LGPLv3