Home > Archive > PERL Beginners > August 2005 > Memory Testing
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| mgoland@optonline.net 2005-08-18, 5:56 pm |
| Hi All,
I am in need to do some memory stress testing. Is there a way to use C style malloc or calloc, to allocate blocks at a time ??
Thanks in advance,
Mark G.
| |
| Chris Devers 2005-08-18, 5:56 pm |
| On Thu, 18 Aug 2005 mgoland@optonline.net wrote:
> I am in need to do some memory stress testing. Is there a way to
> use C style malloc or calloc, to allocate blocks at a time ??
Not that I can think of, though there may be something under the B::*
module namespace that does that.
Alternatively, if you already know how you'd go about this problem in C,
then you may be able to use the Inline::C module to embed snippets of C
code directly into your Perl script.
That may be a reasonable compromise...
--
Chris Devers
| |
| Tom Allison 2005-08-20, 9:55 pm |
| mgoland@optonline.net wrote:
> Hi All,
> I am in need to do some memory stress testing. Is there a way to use C style malloc or calloc, to allocate blocks at a time ??
>
> Thanks in advance,
> Mark G.
>
Would this be of any help?
use Devel::Size qw(size total_size);
|
|
|
|
|