legate.core.context.Context.track_provenance#
- Context.track_provenance(func: AnyCallable, nested: bool = False) AnyCallable #
Wraps a function with provenance tracking. Provenance of each operation issued within the wrapped function will be tracked automatically.
- Parameters:
func (AnyCallable) – Function to wrap
nested (bool) – If
True
, each invocation to a wrapped function within another wrapped function updates the provenance string. Otherwise, the provenance is tracked only for the outermost wrapped function.
- Returns:
Wrapped function
- Return type:
AnyCallable