-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#2039 trace trim, part 4: Clamp timestamps (#5704)
Moves the timestamp+cpu headers to be added at buffer creation time instead of at buffer output time. Makes instru_t::frozen_timestamp_ use release-acquire semantics and sets it for -align_endpoints at detach time. Adds a 'minimum timestamp' recorded at post-attach time. At buffer output time, we examine the buffer's timestamp and if it was from before the minimum, we replace it with the minimum. Tested on a large app where these changes result in much tighter timestamps matching the burst period. This also directly fixes #5537 which pointed out that the timestamps being at buffer output time is contradicted by the documentation. Issue: #2039, #5537 Fixes #5537
- Loading branch information
1 parent
1e57d27
commit c2c85ef
Showing
6 changed files
with
117 additions
and
42 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