On Tue, 29 Aug 2000, Lyle D. Brooks wrote:

> This is my first time posting to this list, so forgive me
> if this question has been asked before (I did not see it in
> the archives or in the mod_perl guide).
> 
> Apache::Status seems like a nice module, but I don't understand
> what the Memory usage section is telling me.
> 
> For a given package, I have a function foo() that has a line 
> like this.
> 
> 
> foo           48293 bytes   |   1172 OPs
> 
> 
> Here's my questions...
> 
> 1) 48293 bytes is what?  Is that code?, stack?, data? or a combination
>    of some of the three?  

Code and data combined, AFAIK. Its data from some B::Terse or B::TerseSize
module. See the documentation in that for more details.

> 2) 1172 OPs - what's an OPs?  Is it good to have more or less?  How does 
>    that affect memory usage?

Perl code is based on OP codes, much like Java Bytecode. It is good to
have less, as it means (sometimes) faster execution and less memory usage.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org

Reply via email to