Google-Apps
Hauptmenü

"GMemoryMonitor (low-memory-monitor, 2nd phase)"

5 Comments -

1 – 5 of 5
Blogger Bastien Nocera said...

I don't think that multiple applications empty their caches at the same time would have much of an impact. In the worst case, we need to figure out which application to send this information to, but we won't need to change the client API if that were the case.

18 December 2019 at 09:52

Blogger Philip said...

How do I use it in my application? Do you have some example code?

18 December 2019 at 10:01

Blogger Bastien Nocera said...

> Do you have some example code?

Is anything about the API documentation unclear?

18 December 2019 at 10:40

Blogger Sam said...

Thanks for the clear explanations. Really interesting project!

How do you test the project? I can see some automated API tests for the GMemoryMonitor API, but I wonder if you also have some tricks for doing manual testing -- maybe you set up a VM and then trigger a high memory pressure situation somehow?

18 December 2019 at 10:47

Blogger Bastien Nocera said...

> How do you test the project?

There's a "fill-memory" test program in the low-memory-monitor sources. And 3 months of dogfooding :)

If somebody wanted to spend more time automating this, I think that porting Android's lmkd test suite would be very useful (even if we already use the same trigger points, so there's not that much left to test for).

18 December 2019 at 10:50

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot