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

Support inter-thread blocks measuring #203

Open
Nizerlak opened this issue Jul 2, 2022 · 0 comments
Open

Support inter-thread blocks measuring #203

Nizerlak opened this issue Jul 2, 2022 · 0 comments

Comments

@Nizerlak
Copy link

Nizerlak commented Jul 2, 2022

Useful feature would be possibility of creating and tracking inter-thread blocks.
Possible use case:

  • We want to track an object lifetime, which is passed or shared via std::shared_ptr between threads in app.
  • On object creation, call to EASY_INTER_THREAD_BLOCK(/* object specific id */) would be performed.
  • In object deleter (or custom shared_ptr deleter) there would be call to EASY_INTER_THREAD_BLOCK_END(/* object specific id */)
  • GUI app would present the block lifetime in separate section (since it wouldn't be attached to specific thread obviously)

Of course above macros' names are only my suggestion and could be replaced by anything, it's only for presentation purpose.
What do you think about this feature?

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

No branches or pull requests

1 participant