commit | dde055db41ab71341e05b81fa44669d182ee9915 | [log] [tgz] |
---|---|---|
author | Xi Cheng <chengx@chromium.org> | Tue Oct 02 20:49:12 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 02 20:49:12 2018 |
tree | 9322cd1fa69f1d3ce28ae170dc1ebb74e000cbf3 | |
parent | 33a8bcf3c7da3ad91cc542a98fafa163d210a05e [diff] |
Cap the number of pending unserialized profiles This limits the amount of memory used for unserialized profiles that have been collected but not yet uploaded (e.g. due to being offline). When the number of unserialized profiles exceeds the cap, serialize the new ones to save memory. Code-wise, this CL changes PendingProfiles to maintain two separate vectors for unserialized profiles and serialized profiles, so that we can retrieve the count of each kind of profiles immediately. This CL also simplified the implementation a bit so that struct ProfileState is no longer needed. Bug: 888716, 851163 Change-Id: I177d51065da04789db8d411af8387e08336c2342 Reviewed-on: https://chromium-review.googlesource.com/c/1250144 Commit-Queue: Xi Cheng <chengx@chromium.org> Reviewed-by: Ilya Sherman <isherman@chromium.org> Cr-Commit-Position: refs/heads/master@{#595969}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .