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 for task dependency visualization #122

Open
rexdex opened this issue Aug 14, 2018 · 0 comments
Open

Support for task dependency visualization #122

rexdex opened this issue Aug 14, 2018 · 0 comments
Labels
core Issues related to easy_profiler_core feature suggestion ui Issues related to profiler_gui

Comments

@rexdex
Copy link

rexdex commented Aug 14, 2018

Typically in some form of task-graph system or similar arrangement starting one task depends on completion of other(s). Being able to visualize those dependencies in the profiler would be a very useful feature.

Concept:

image

API would be rather simple:

id = EASY_DEPENDENCY_SOURCE() - creates a "source" point of dependency on the current thread, returns opaque ID to pass to the other function. This is the start of the arrow. Time should be remembered exactly, the source can be assumed to be in the current block.

EASY_DEPENDENCY_TARGET(id, color) - creates a "target" point of dependency (arrow's head). Time should be remembered exactly and it can be assumed that the target exists in the current block.

Such API would allow to integrate dependency tracking in multiple scenarios:

  • Task Graph dependencies
  • sequence multiple IO operations
  • CPU to GPU timing mapping (with some extra massaging)
  • places where fiber is yielded and resumed
  • events/semaphores and places where events are released
  • many more
@cas4ey cas4ey added suggestion feature core Issues related to easy_profiler_core ui Issues related to profiler_gui labels Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues related to easy_profiler_core feature suggestion ui Issues related to profiler_gui
Projects
None yet
Development

No branches or pull requests

2 participants