On Wed, May 21, 2014 at 3:31 AM, Ting-Yu Chou <[email protected]> wrote:
> Hi Dave,
>
> When I was working on memory issues on Tarako, such as Gallery gets killed by
> LMK while scrolling, I usually asked by Gaia developers that "How should I
> measure how much memory is the application using while I am ...?" I answered
> them that I eyeball the output of b2g-info, which is not an easy way.
>
> As the loading from Tarako is eased recently, I am thinking maybe a real-time
> memory line chart will be helpful. Thinker told me there're some discussions 
> on
> dev-platform, so I found and read your email.
>
>> mode" for the profiler.  We can then add in Harald's (and :bkelly's
>> prototype, and :hub's implemented) real-time memory reporting into the
>> profiler timeline.  I'm working on profiler markers from JS
>
> Seems you're concentrate on unifying the communication between target and
> host. But how do you think if I try to add the real-time memory report
> simultaneously?
>
> I haven't thought it completely yet, but I'd like to know are there any 
> chances
> that I can help on that, or maybe someone is already working on it.
>
> Thanks,
> Ting
>
>> On 03/25/2014 11:44 AM, Dietrich Ayala wrote:
>> > Harald's tool is a bit different - it's about real-time tracking for
>> > developers. I have an oddly similar tool I wrote for my own use, that
>> > shows real-time graphs of memory and CPU using the same method, to be
>> > able to see the impact of specific sequences of user actions across
>> > multiple processes.
>> >
>> > However, on Tarako I've noticed that it greatly affects the performance
>> > of the device over short periods of time. I haven't looked further into
>> > it - Harald have you seen that issue?
>> >
>> >
>> > ------------------------------------------------------------------------
>> >
>> >     Thanks Harald!
>> >
>> >     We (+FxOS Perf Team [1]) have a similar memory tracking effort that
>> >     feeds into Datazilla [2]. *Hub*ert Figuiere can speak to its
>> >     details. *Ben Kelly* leads our memory performance efforts and *Dave
>> >     Huseby* leads our tool development. Please chat with all three about
>> >     what you've built and how we can work together on this.
>> >
>> >     Mike
>> >
>> >     [1]: https://wiki.mozilla.org/B2G/Performance
>> >     [2]: http://mzl.la/1giCtEL
>> >
>> >     
>> > ------------------------------------------------------------------------
>> >     *From: *"Harald Kirschner" <[email protected]>
>> >     *To: *"Apps Partner Engineering @ Mozilla"
>> >     <[email protected]>
>> >     *Cc: *"Dietrich Ayala" <[email protected]>, "Fabrice Desre"
>> >     <[email protected]>, "Thomas Elin" <[email protected]>, "Mike Lee"
>> >     <[email protected]>
>> >     *Sent: *Tuesday, March 25, 2014 11:26:04 AM
>> >     *Subject: *Firewatch: Realtime B2G info
>> >
>> >     To debug memory use a bit better after hearing that the new dev tool
>> >     overlay doesn’t report a good memory indicator here a new approach:
>> >
>> >     https://github.com/digitarald/firewatch
>> >
>> >     Firewatch is basically a real-time b2g-info, showing only the useful
>> >     values (PSS and USS [1]) and free memory. On the roadmap is a
>> >     history feature to see max/min/avg/mean values (spikes) and keeping
>> >     killed apps.
>> >
>> >     I still have to give it a test ride on Tarako and should have more
>> >     details later. Feel free to cc more people as feedback is much
>> >     appreciated!
>> >
>> >     /Harald
>> >
>> >     Partner Engineer & Web Craftsman | [email protected]
>> >     <mailto:[email protected]>
>> >
>> >     [1]: http://elinux.org/Android_Memory_Usage#procrank
>> >
>> >
>> >
>>
>> _______________________________________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/listinfo/dev-b2g
>>
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g

I am planning to add support to the Dark Matter Detector to measure
and record short-lived transient memory spikes.  I haven't written any
code yet but it should be pretty straightforward to do.  DMD isn't
integrated with the other tools though.

In the immediate term, it certainly should be possible for the
profiler to record the current memory usage when it samples, if you
can decide what metric of "current memory usage" you want.

- Kyle
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to