[typo] [FATAL] failed to allocate memory
scott at sigkill.org
Tue Aug 15 14:46:26 EDT 2006
On 8/15/06, Paul Brown <paulrbrown at gmail.com> wrote:
> On 8/15/06, Scott Laird <scott at sigkill.org> wrote:
> > One thing I'd recommend (if you aren't doing this already) is to build
> > a memory profiler component with an action that dumps your memory
> > profile data. Then you can run zillions of queries without paying the
> > price of the memory profiler per hit, while still having your data
> > always be accessible.
> > If one of these was easily available, then I wouldn't have to write my
> > own when I start working on memory leaks. Hint, hint.
> Heh. You can get away with something simpler. Do what I did:
> 1) Add the profile hook as an after filter on the main article controller.
> 2) Add a class-level variable (@@next_time_to_run).
> 3) Set an interval at which to run the profile dump.
> Links to profiling code snippet, etc., are here:
Cool. Personally, I'd rather be able to trigger it on-demand, but the
two approaches are only a couple minutes apart from each other :-).
More information about the Typo-list