Skip to content

Support manual management of VM stack tracing zones. #9503

Closed

Description

@benvanik

Coroutines in #8093 require the IREE_TRACING_FEATURE_FIBERS flag to be set today as when we unwind the host stack the zones remain open. Adding a top-level enter/leave that calls the IREE_TRACE_FIBER_ENTER/LEAVE when enabled and otherwise ends and begins the zones for the whole stack would let us preserve proper nesting and run with the fiber feature flag off.

I haven't done any profiling to see how bad the flag is and just noted in the tracy docs that it "adds overhead" - looks like it may change from a lock-free queue to a locking one but that may not matter much for us. So long as we have the feature flag option though it'd be good to work with it disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

runtime/vm

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions