I would like to use snakeviz (https://jiffyclub.github.io/snakeviz/) or tuna to profile a non-python program (weird, isn't it?).
This program dumps a log file with time spent on each routine. I would like to parse this file and create from-scrath a .prof file.
Now my question: is there somewhere a specification for such a file? Or - even better- a trick to create a cProfile.Profile.pstats artificially from a list of elapsed times?