Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r235113 - [Linux] Cache the memory footprint and only update it…
… after 1 second https://bugs.webkit.org/show_bug.cgi?id=188791 Reviewed by Yusuke Suzuki. Getting the memory footprint is an expensive operation in Linux. When called multiple times, the CPU usage is too much (see bug #188787). We could cache the result for at least 1 second to ensure we don't call it more than once per second. * wtf/linux/MemoryFootprintLinux.cpp: (WTF::forEachLine): (WTF::computeMemoryFootprint): (WTF::memoryFootprint):
- Loading branch information
1 parent
5473bfa
commit 1142f62
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters