[Feature request]: Introspection and debugging API

Open
#86 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
devtools

Research direction

The issue names no files, tests, or entry points to begin with. First clarify which checked capabilities are in scope and how the API should operate outside a Bevy-managed thread, including optional performance-impacting hooks. Done requires an agreed API scope and design for introspection, breakpoints, and resuming before implementation can be estimated.

Written by the indexing model from the issue text.

Description

enhancement
Before proceeding, is there an existing issue or discussion for this?
Description

It would be good if there is a introspection and debugging API to allow

  • Querying the list of currently running nodes
  • Query the amount of times a node is activated and the time it took for it to produce an output
  • Setting a breakpoint to pause execution when a node is activated
  • Query the source or reason the node is activated
  • Resuming a paused node
  • Forcing a node to produce a given output
  • Forcing a node to receive a given input
  • Change the buffers and streams used by a node
Implementation Considerations

The API should be accessible from outside the workflow, i.e. from a non bevy managed thread. If the API requires any hooks that might impact performance, it should be made optional.

Alternatives

Detailed logging and tracing for when a node is activated, how long it took, reason for activation etc.

Additional information

No response

Dominant language
Rust
Stars
75
Forks
18
Avg merge
12d 12h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from open-rmf/crossflow

All issues in open-rmf/crossflow

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.