Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added performance counter #5284

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

hedara90
Copy link
Collaborator

@hedara90 hedara90 commented Aug 29, 2024

Description

Adds a way to measure cycle counts.
CycleCountStart starts the counter.
CycleCountEnd stops the counter and returns the number of CPU cycles since start. (Should be accurate within tens of cycles)
This is locked behind commenting out #define NDEBUG in include/config/general.h.

People who collaborated with me in this PR

@SBird1337 , provided the actual code.

Discord contact info

hedara

@hedara90 hedara90 added the new-feature Adds a feature label Aug 29, 2024
@SBird1337 SBird1337 merged commit 2ab0dd7 into rh-hideout:upcoming Aug 29, 2024
1 check passed
@hedara90 hedara90 deleted the performance-measure branch August 29, 2024 14:21
@AsparagusEduardo AsparagusEduardo added the General Doesn't fit under other labels label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Doesn't fit under other labels new-feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants