P403n1x87 / echion

Near-zero-overhead, in-process CPython frame stack sampler with async support
MIT License
14 stars 2 forks source link

echion-web? #61

Open hgrecco opened 10 months ago

hgrecco commented 10 months ago

I am having trouble running Austin (in a macbook pro) and echion seems to work. Is there austin-web like program for echion? If not, how can visualize the echion output files.

P403n1x87 commented 10 months ago

@hgrecco I would be interested in knowing what issues you're facing with Austin, in case this is something that we can fix. I would appreciate if you could open an issue in the Austin repository with all the details on how to reproduce the problem 🙏 .

As for the output from Echion, this is in the MOJO binary format, which is also used by Austin. This means that any tools that is good for visualising MOJO is good for Echion too. Perhaps the best one at the moment is the Austin VS Code extension. Alternatively, you could install austin-python, and use the mojo2austin to convert the MOJO file into the Austin collapsed stack format. From there you can then use the other conversion tools, such as austin2pprof or austin2speedscope to convert to other formats.

I appreciate this might not be an ideal workflow, but please note that Echion is still in an experimental stage.

Hope this helps for now!

hgrecco commented 10 months ago

The problem with Austin is that it does not recognize the python script as Python program. It has a shebang, a .py extension and the right execution privileges. But Austin does not recognize it. I tried using -C, but same problem. My guess is that I am no using Python standard distro but actually from anaconda.

I am not sure how you check that python is running but maybe that signature is different in anaconda python.

P403n1x87 commented 10 months ago

@hgrecco thanks for the extra details. I'd really appreciate if you could open an issue in Austin, with details such as the Anaconda version, Austin version, OS version etc..., so that I can try to reproduce the problem 🙏

hgrecco commented 10 months ago

I tried to reproduce by producing a clean, conda environment and now is working. Sorry for the noise!