ObjectMemory growth notification

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ObjectMemory growth notification

Dave Stevenson-3
I see ObjectMemory class>>addToScavengeNotificationList:, but I wonder if there is a way to get notified when memory grows? I want to keep track of the highest dynamicallyAllocatedFootprint while my app is running.
 
Dave Stevenson
[hidden email]

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: ObjectMemory growth notification

Andres Valloud-6
Not per se.  However, there are a couple things you can do.  If you want
to get information to tune your application's memory policy, you might
want to look at the MemoryMonitor-runHeadless parcel.  It will create a
CSV file with (among other things) what you're looking for.

Another way is to make your own memory policy class to add high water
recording.  It shouldn't be hard since there are only a few places where
growth occurs.

On 5/24/2012 1:39 PM, Dave Stevenson wrote:

> I see ObjectMemory class>>addToScavengeNotificationList:, but I wonder
> if there is a way to get notified when memory grows? I want to keep
> track of the highest dynamicallyAllocatedFootprint while my app is running.
> Dave Stevenson
> [hidden email]
>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: ObjectMemory growth notification

Andres Valloud-6
(see doc/technotes/vwmemorymgmt.pdf for details)

On 5/24/2012 5:07 PM, Andres Valloud wrote:

> Not per se.  However, there are a couple things you can do.  If you want
> to get information to tune your application's memory policy, you might
> want to look at the MemoryMonitor-runHeadless parcel.  It will create a
> CSV file with (among other things) what you're looking for.
>
> Another way is to make your own memory policy class to add high water
> recording.  It shouldn't be hard since there are only a few places where
> growth occurs.
>
> On 5/24/2012 1:39 PM, Dave Stevenson wrote:
>> I see ObjectMemory class>>addToScavengeNotificationList:, but I wonder
>> if there is a way to get notified when memory grows? I want to keep
>> track of the highest dynamicallyAllocatedFootprint while my app is running.
>> Dave Stevenson
>> [hidden email]
>>
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: ObjectMemory growth notification

Niall Ross
In reply to this post by Andres Valloud-6
Dear Dave,

>... look at the MemoryMonitor-runHeadless parcel ...
>
Trivial FYI:

    - loaded from cold, the MemoryMonitor-runHeadless parcel will
complain it cannot find the 'MemoryMonitor' parcel

    - load the 'Memory Monitor' parcel first, and all will be well.

          Yours faithfully
                Niall Ross


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc