forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cygprofile: Orderfile-based madvise() and prefetch.
Add support for madvising and prefetching different parts of the native library according to the orderfile. The orderfile will support organising the library text section into three parts: code that is used in startup only, commonly used code that is ordered, and all other code that is not ordered. This change adds another dummy_function_* to achieve that. The currently-experimental MadviseRandomText() function is replace with MadviseForOrderfile which performs more precise madvising of unordered code only as RANDOM. When madvising for the orderfile is done, library prefetching is disabled. This will be changed in the future to prefetch only startup or only ordered code depending on what is more effective in experiments. Bug: 758566 Change-Id: I85af8e33a79d9091e282f2640c47d6c83aca7fc2 Reviewed-on: https://chromium-review.googlesource.com/923965 Commit-Queue: Matthew Cary <[email protected]> Reviewed-by: Camille Lamy <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Reviewed-by: agrieve <[email protected]> Reviewed-by: Benoit L <[email protected]> Cr-Commit-Position: refs/heads/master@{#538766}
- Loading branch information
Matthew Cary
authored and
Commit Bot
committed
Feb 23, 2018
1 parent
a9a703e
commit ed73a1d
Showing
8 changed files
with
60 additions
and
27 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
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
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
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