[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] mall 0.0.1 Released

Eric Wong

6/9/2009 9:59:00 PM

mall version 0.0.1 has been released!

* <http://bogomips.or...

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

== cgit viewer

* http://git.bogomips.org/cgi... (cgit)

License: LGPLv3

--
Eric Wong