-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a time reference for converting hrtime to UTC
- Adds a `TimeReference` type for consistently converting from hrtime to UTC, using the mapping from a single point in time. This is stored in each `SampledKstat` now, and passed to `KstatTarget::to_samples()`. The implementer can use this to consistently derive a start time for their kstats now, though this isn't (can't be?) consistent if you remove and re-add a target. - Add some quick sanity tests for `TimeReference`, more tests verifying start time consistency - Cleanup unused code
- Loading branch information
Showing
3 changed files
with
162 additions
and
77 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