forked from dlang/druntime
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix profile timing measurements on AArch64. (dlang#150)
We cannot use ldc.intrinsics.llvm_readcyclecounter because that is not an accurate time counter (it is a counter of CPU cycles, where here we want a time clock). Also, priviledged execution rights are needed to enable correct counting with ldc.intrinsics.llvm_readcyclecounter on AArch64. So instead, we use the general virtual counter register, and also read out the frequency of that counter.
- Loading branch information
1 parent
98321e0
commit 4e74576
Showing
1 changed file
with
48 additions
and
23 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