Open cheshire opened 5 months ago
@superbobry can I work on this issue?
Sure!
@149ps @superbobry Not sure what progress has been made, but I forked code and did some work. The usage would be like something below:
JAX_PROFILE=output.pb python run_with_profiling.py sample_jax_script.py
Question is, where should be the code be organized? I've put everything in a ProfilerRunner class. Should I leave that in as jax/run_with_profiling.py and submit a PR? or should I place within jax/profiler.py and then submit a PR?
Thanks!
Thanks @nirmalmuppiri! No progress has been made on this AFAIK.
Feel free to send a PR. jax/_src/profiler.py sounds like the right place for this.
@superbobry done, please check PR #21660!
Currently adding profiling requires source-code changes which could be difficult in a large codebase.
Would be great if something like
JAX_PROFILE=output.pb
was supported to generate profiling from command line.CC @hawkinsp