Skip to content

[lldb] Remove timer from Module::GetNumCompileUnits #5689

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

Conversation

kastiglione
Copy link

GetNumCompileUnits has fast execution, and is high firing. Fast and frequent functions are not good candidates for timers. In a recent profile, GetNumCompileUnits was called >>10k times with an average duration of 1 microsecond.

Differential Revision: https://reviews.llvm.org/D138878

(cherry picked from commit e2a10d8)

`GetNumCompileUnits` has fast execution, and is high firing. Fast and frequent functions are not good candidates for timers. In a recent profile, `GetNumCompileUnits` was called >>10k times with an average duration of 1 microsecond.

Differential Revision: https://reviews.llvm.org/D138878

(cherry picked from commit e2a10d8)
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione merged commit ece234d into stable/20220421 Dec 2, 2022
@kastiglione kastiglione deleted the dl/lldb-remove-timer-from-module-getnumcompileunits branch December 2, 2022 17:28
kastiglione added a commit that referenced this pull request Dec 10, 2022
`GetNumCompileUnits` has fast execution, and is high firing. Fast and frequent functions are not good candidates for timers. In a recent profile, `GetNumCompileUnits` was called >>10k times with an average duration of 1 microsecond.

Differential Revision: https://reviews.llvm.org/D138878

(cherry picked from commit e2a10d8)

(cherry picked from commit ece234d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant