forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added caching in PyperfNativeStack #36
Open
IzabellaRaulin
wants to merge
11
commits into
Granulate:master
Choose a base branch
from
IzabellaRaulin:pyperf_caching
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+289
−62
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
79395c7
Added caching in PyperfNativeStack
IzabellaRaulin 7c711d6
Addressed review comments
IzabellaRaulin 9cc65a8
Removed whitespace
IzabellaRaulin b6da372
Set logLevel=3 for informative logs in PyperfNativeStack
IzabellaRaulin 673562d
Added pruning dead pip called in PyPerfProfiler::populatePidTable()
IzabellaRaulin 762f80d
Formatting (git-clang-format)
IzabellaRaulin 15f609e
Fixed 'missing' symbols
IzabellaRaulin 53968d3
Limit variable assignments - if cached, only cursor is needed in do..…
IzabellaRaulin ba3df2b
Set unwind caching policy of address space 'as' to UNW_CACHE_GLOBAL.
IzabellaRaulin 739f411
Added symbols returned by unw_get_proc_name into cache
IzabellaRaulin 624f0ef
Added log to monitor number of cache's entries and size
IzabellaRaulin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Together with TTL-based eviction - PyPerf already tracks PIDs exiting so we can (and should) make use of that - otherwise we risk PID reuse getting us false results.
See
populatePidTable
where in thePruning dead pids
step it removes PIDs. We should callcache_delete_key
there as well. Please ensure it actually works in removing PIDs that exitThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I push a draft of implementation.
populatePIDTable calls static NativeStackTrace::Pruning_dead_pid(). Please take a look at the proposal and let me know if such an approach is acceptable. It is WIP, so please ignore debug logs. I will remove it later.
In the meantime, I am debugging why the cache version gives
missing
and do not manage to add native symbols properly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine with me. Despite written in C++ this entire project is fairly functional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I removed debug leftovers.