This repository has been archived by the owner on May 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing fast CPU sampling rates and supplying on-device CPU clock re…
…solution Summary: The clock tick from `sysconf(_SC_CLK_TCK)` is always 10ms which doesn't represent real jiffy interval configured for the kernel. Cleaning up this limitation as redundant and getting the actual jiffy value from device logged as annotation `provider.stack_trace.cpu_timer_res_us`. Turned out `CLOCK_REALTIME_COARSE` clock resolution matches kernel configuration frequency for jiffy (`CONFIG_HZ`). Reviewed By: BurntBrunch Differential Revision: D32772404 fbshipit-source-id: 1a11d995fcb081502c1af40f1c3385477e959fe5
- Loading branch information
1 parent
bab82f6
commit 1f8ff3c
Showing
4 changed files
with
28 additions
and
11 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