Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Dec 16, 2025

Patch internal JAX profiler functions (enabling jax.profiler.trace) and add a test for jax.profiler.trace.

The jax.profiler.trace context manager uses internal jax._src.profiler functions. This change ensures that these internal functions are also patched by pathwaysutils.profiling.monkey_patch_jax to correctly intercept profiling calls. A new test is added to verify that with jax.profiler.trace(...) now triggers the patched Pathways profiling functions.

@copybara-service copybara-service bot force-pushed the test_845135750 branch 2 times, most recently from bce3eef to 91c140a Compare December 17, 2025 19:02
… and add a test for `jax.profiler.trace`.

The `jax.profiler.trace` context manager uses internal `jax._src.profiler` functions. This change ensures that these internal functions are also patched by `pathwaysutils.profiling.monkey_patch_jax` to correctly intercept profiling calls. A new test is added to verify that `with jax.profiler.trace(...)` now triggers the patched Pathways profiling functions.

PiperOrigin-RevId: 845839776
@copybara-service copybara-service bot merged commit fc736dd into main Dec 17, 2025
@copybara-service copybara-service bot deleted the test_845135750 branch December 17, 2025 19:05
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