samedi 24 novembre 2018

Is there any D3-like library to visualize cProfile results?

I'm looking for a library, based or not in D3 framework, that allows me to render in a web page the results of cProfile.

The results are basically a table like this:

ncalls  tottime  percall  cumtime  percall filename:lineno(function)
 1    0.000    0.000    0.001    0.001 <string>:1(<module>)
 1    0.000    0.000    0.001    0.001 re.py:212(compile)
 1    0.000    0.000    0.001    0.001 re.py:268(_compile)
 1    0.000    0.000    0.000    0.000 sre_compile.py:172(_compile_charset)
 1    0.000    0.000    0.000    0.000 sre_compile.py:201(_optimize_charset)
 4    0.000    0.000    0.000    0.000 sre_compile.py:25(_identityfunction)
 3/1    0.000    0.000    0.000    0.000 sre_compile.py:33(_compile)

Even when this can be plotted easily, I'm looking for something interactive like Snakviz and many other stand alone visualizers out there.




Aucun commentaire:

Enregistrer un commentaire