Skip to content

Conversation

@copybara-service
Copy link

Exposes pathwaysutils.profiling._start_trace_from_profile_request as pathwaysutils.experimental.profiling.start_trace.

The standard pathwaysutils.profiling.stop_trace should still be used to stop.

Usage example:

import pathwaysutils
from pathwaysutils.experimental import profiling as experimental_profiling

pathwaysutils.initialize()  # monkey-patches JAX

experimental_profiling.start_trace(profile_request)
...  # JAX code
jax.profiler.stop_trace()

…s `pathwaysutils.experimental.profiling.start_trace`.

The standard `pathwaysutils.profiling.stop_trace` should still be used to stop.

Usage example:
```
import pathwaysutils
from pathwaysutils.experimental import profiling as experimental_profiling

pathwaysutils.initialize()  # monkey-patches JAX

experimental_profiling.start_trace(profile_request)
...  # JAX code
jax.profiler.stop_trace()
```

PiperOrigin-RevId: 845400876
@copybara-service copybara-service bot merged commit 9b19b64 into main Dec 16, 2025
@copybara-service copybara-service bot deleted the test_842402873 branch December 16, 2025 21:02
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.

1 participant