-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce cache_maps flag to Normalizer
Reading and parsing the /proc/<pid>/maps file is not free in terms of performance. Doing the same work again and again for the same process may not be an acceptable price to pay in all contexts. This adds the 'cache_maps' flag to the Normalizer type, which, in the future, will determine whether the /proc/<pid>/maps contents are read for every normalization operation or only once, with the result being cached. The downside to caching the result is that we may end up unable to normalize an address for a mapping added after /proc/<pid>/maps was cached, because there does not appear to be any API that would allow us to determine up-to-dateness of this file. As such, we do not cache this file by default. Signed-off-by: Daniel Müller <deso@posteo.net>
- Loading branch information
1 parent
68aa89b
commit 6b52131
Showing
2 changed files
with
46 additions
and
5 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