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

Multithreading support & overhaul of scope handling #55

Merged
merged 19 commits into from
Nov 12, 2023

Conversation

Wumpf
Copy link
Owner

@Wumpf Wumpf commented Nov 11, 2023

Completely changes how scope state is handled!

Creating a scope now returns it and needs to be passed in again on end_scope. Both these functions now only take a non-mut reference to GpuProfiler, allowing it to be used across threads or simply interleaved with several encoders.

This also means that nesting is done now explicitly, which means that the profiling macro no longer made sense.

Instead, Scope/OwningScope are now proper first class citizens and are exposed directly on GpuProfiler

@Wumpf Wumpf merged commit 9b02639 into main Nov 12, 2023
1 check passed
@Wumpf Wumpf deleted the multithreading-support branch November 12, 2023 21:39
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.

Profiler can't be used accross threads or with interleaved scopes
1 participant