-
Notifications
You must be signed in to change notification settings - Fork 838
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
Add DTRACE points to measure request timings. #11245
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
47bacf7
Add DTRACE probes for request infrastructure timing.
neunhoef 213263d
DTrace working.
neunhoef 8363264
Merge remote-tracking branch 'origin/devel' into feature/dtrace
neunhoef d85e7ca
Include sdt.h with source.
neunhoef 5e6d6d4
Merge branch 'feature/dtrace' of ssh://github.com/arangodb/arangodb i…
neunhoef 60c620b
Merge remote-tracking branch 'origin/devel' into feature/dtrace
neunhoef 89dc1a7
Do VstCommTask, too.
neunhoef d088e52
Add example files for bpftrace.
neunhoef ea70ab9
Comments for examples.
neunhoef 1da7311
Fix compilation and script.
neunhoef d4c0ce6
Bugfixes.
neunhoef a21303a
Merge remote-tracking branch 'origin/devel' into feature/dtrace
neunhoef e50a20c
Merge remote-tracking branch 'origin/devel' into feature/dtrace
neunhoef b99c41b
Merge remote-tracking branch 'origin/devel' into feature/dtrace
neunhoef 5935be4
Merge remote-tracking branch 'origin/devel' into feature/dtrace
neunhoef b56ee2b
Fix HTTP/2 server side switching.
neunhoef 3ffaa4c
Merge branch 'devel' of github.com:arangodb/arangodb into feature/dtrace
jsteemann 331de30
move most stuff into dtrace-wrapper.h
jsteemann 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
Next
Next commit
Add DTRACE probes for request infrastructure timing.
So far, we are doing HttpCommTask and H2CommTask. This is optional use -DUSE_DTRACE=1 to activate.
- Loading branch information
commit 47bacf74c36b1513f1808f8a9bdd7b6089204cdc
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
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.
why DTRACE_PROBE1 not just a noop, instead of wrapping everything in #ifdef
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.
There are 74 #define statements in
lib/Basics/sdt.h
. Yes, so far I am using only two of them. But I think it is impractical to define them all as empty macros ifUSE_DTRACE
is set to 0. I would prefer to leave it as it is, but it is an easy change to define those that we actually use as empty macros for now, if you strongly prefer this. I have no strong feelings.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.
I would also prefer having just one file to be included wherever tracing is needed:
lib/Basics/dtrace-wrapper.h
And this file could contain:
That would allow us to have everywhere managed in a single place, and keep the changes to the code minimal.
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.
I like this approach.