Skip to content

Graph viewer on Xprof missing #37774

@justinjfu

Description

@justinjfu

When running from JAX near head (https://github.com/jax-ml/jax/commits/f0ed696cfcaa54a8f6b7217d63ffc897f72eb6f3/), it seems that Xprof loses the graph viewer.

Reproducer:

# Build JAX at head
git checkout f0ed696cfcaa54a8f6b7217d63ffc897f72eb6f3
python build/build.py build --wheels=jaxlib --python_version=3.12 --verbose
pip install <build jaxlib wheel>

Now run:

import jax
from jax import numpy as jnp

@jax.jit
def foo(x, y):
  return x + y

with jax.profiler.trace("/tmp/jax-trace"):
  x = jnp.ones((5,))
  y = jnp.arange(5)
  jax.block_until_ready(foo(x, y))

Now when running xprof --logdir=/tmp/jax-trace, the graph viewer is missing. If I click on a graph viewer link for a particular op in the trace, it also brings me back to the overview page.

Image

Note that the graph viewer still seems to be present when using jaxlib==0.9.0, so this seems to be a regression introduced recently.

I'm running Xprof version 2.21.6 (this was installed by running pip install xprof)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions