-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Separate Profiling ThreadContext initialization from CpuAnd…
…WallTimeWorker **What does this PR do?** This PR separates the initialization of the `Profiling::Collectors::ThreadContext` component from the initialization for the `Profiling::Collectors::CpuAndWallTimeWorker`. Now, both are created in `Datadog::Profiling::Component`. **Motivation:** Historically, these two classes have been moving apart, as the profiler development evolves. As more settings need to get added to the `ThreadContext`, it became very awkward to keep changing the `CpuAndWallTimeWorker` to forward more and more things. **Additional Notes:** N/A **How to test the change?** The existing test coverage already covers this.
- Loading branch information
Showing
5 changed files
with
37 additions
and
56 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