forked from cockroachdb/cockroach
-
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.
execstats: collect some stats via EventListeners
This commit changes how contention time, scan stats, and consumed RU information are accumulated by the processors. Previously, we would analyze the trace recording of the processor to pick out all applicable events from the trace and aggregate across all of them. This worked well because currently we always create "detached" spans for all processors (in other words, a contention event attached to the span of one processor will not be seen by the parent processor). However, the following commit will change that for processors on the gateway. Namely, all processors on the gateway will no longer use the detached option. As a result, we need to have a different way to distinguish between events seen by the processor itself versus events seen by the "child" processor. This commit introduces that way via the EventListeners. In particular, it defines three types of listeners (for all kinds of structured events we're interested in), which are then used by all processors. Release note: None
- Loading branch information
1 parent
7b0cfc0
commit 0308728
Showing
15 changed files
with
227 additions
and
192 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
Oops, something went wrong.