rumos2 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, again :)
1. How can I definetly know, how much of bytes in memory takes some variable (array, string, hash, number) at anytime of running code.
2. How can I check - was variable and it's buffer deleted from memory adter making undef ? So I talking not about deleting hash key, or about undef($SomeReference) - but about operational copyes, which will deletes only after process death, but can still exist within infinite while.
3. How can I get to know - was at "this runtime" any undeleted data, or undeleted runtime object copyes, etc.; i.e. how can I check process variables table.
Want to get some links for documents which describes this at all.
Re: question 2nd - memory usage, memory leaks, etc.
by Anonymous Monk on Sep 23, 2013 at 22:32 UTC
|
Tutorials: Variable Scoping in Perl: the basics, Coping with Scoping , Mini-Tutorial: Perl's Memory Management, Lexical scoping like a fox, Read this if you want to cut your development time in half!, Closure on Closures , perlref#Circular References, Memory leaks and circular references, Circular references and Garbage collection., make perl release memory, about memory management , Re^3: Scope of lexical variables in the main script , Re: What's the weaken here for?, Devel::Cycle, Devel::NYTProf, Devel::Leak Devel::LeakTrace, WeakRef
| [reply] |