The actual computation happens within JAX. The instructions for running the code are handed to XLA, which compiles and runs the code. For this reason, we need to use multiple tools for profiling.
- Wall clock timing
- cProfile (python level profiling)
- JAX XLA trace

The actual computation happens within JAX. The instructions for running the code are handed to XLA, which compiles and runs the code. For this reason, we need to use multiple tools for profiling.