ionelmc / python-hunter

Hunter is a flexible code tracing toolkit.
https://python-hunter.readthedocs.io/
BSD 2-Clause "Simplified" License
796 stars 46 forks source link

Language neutral trace format #54

Open guettli opened 5 years ago

guettli commented 5 years ago

Out of curiosity I asked if there is a language neutral trace format:

https://stackoverflow.com/questions/54330099/language-neutral-trace-format

There are interesting answers.

It would be very nice, if python-hunter could export a format which can get used by other tools

ionelmc commented 5 years ago

For the remote tracing feature this is what was considered before implementation: https://github.com/ionelmc/python-hunter/issues/27

For background: one of my goals with hunter is to be simple and lightweight. I didn't want to bring in serialization and heavy dependencies, unless there's no other option.

Regardless, I'm fond of sysdig, maybe hunter could have it's --write / --read features (they use pcap or something) one day ...

ctrngk commented 4 years ago

html format. It could be very colorful. With js, it could even support collapse/hide, tooltip, etc. I tried to reformat output in txt two years ago. It is silly. Color is lost. It is not as expressive as html.

guettli commented 4 years ago

@ctrngk I was thinking about a data format. For example a json/yaml/proto-buff schema. HTML is for presenting the trace. For displaying the trace https://github.com/jlfwong/speedscope could get used.