Re: memory usage monitoring
Re: memory usage monitoring
- Subject: Re: memory usage monitoring
- From: Stephane Huaulme <email@hidden>
- Date: Mon, 23 Jun 2003 15:15:06 -0500
for anyone else who needs to do this: the answer is to use task_info()
examples of how to use it can be found in the ps.proj in the darwin
code, in particular tasks.c
if there is anything else that can help monitor memory usage of a cocoa
app (programmatically), please chime in.
stephane
On Saturday, June 21, 2003, at 12:34 PM, Stephane Huaulme wrote:
how can I monitor the memory usage of my application? my goal is to be
able to detect anomalies without necessarily any stack traces (I can
monitor the overall activity and narrow the investigation later). I
need to be able to avoid false positive as well: I noticed that if
monitor memory usage manually using top, I can see the app increasing
in size, but if I check with ObjectAlloc, the app size does not
increase, even for top. So I suspect that just looking at the process
mem usage would not sufice, although it might provide a good start.
I can't use tools like ObjectAlloc because it grows to the point where
it crashes within a few hours. The app allocates and releases large
amounts of data over time.
thanks
stephane
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.