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

Pthread lib Profiling #5

Open
MJChku opened this issue Nov 5, 2020 · 0 comments
Open

Pthread lib Profiling #5

MJChku opened this issue Nov 5, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@MJChku
Copy link
Owner

MJChku commented Nov 5, 2020

Use instrument.c to profile the whole pthread library by wrap functions with NK_PROFILE_ENTRY and NK_PROFILE_EXIT.


From MG benchmark result, pte_cancellable_wait is taking the most of the time(basically anything that is using pte_osSemaphorePend), followed by spin_lock and sched_yield(nk_yield). But interestingly, pte_osSemaphorePend is not taking that much time as indicated by which uses it.

@MJChku MJChku added the enhancement New feature or request label Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant