baverman / flameprof

Flamegraph generator for cProfile stats
MIT License
237 stars 15 forks source link

Flameprof is failing to parse profile output #4

Open itamarst opened 5 years ago

itamarst commented 5 years ago

Hi,

I'd like to tell people about flameprof in talk I'm giving, but it's failing for me:

$ python -m cProfile -o out.prof benchmarks/serialization.py
$ flameprof out.prof > prof.svg
Warning: flameprof can't find proper roots, root cumtime is 0.0 but sum tottime is 1.6221999999999899

I'm specifically running the benchmark from https://github.com/itamarst/eliot

GabrielC101 commented 4 years ago

I’m having the same problem. Running on:

Just to be clear, an SVG is being produced. But it I don't have confidence in it.

jeffguorg commented 3 years ago

same problem

test.zip

itamarst commented 3 years ago

https://jiffyclub.github.io/snakeviz/ is an alternative, for those who can't use flameprof.

Entropy512 commented 2 years ago

Snakeviz has the same limitation: https://github.com/jiffyclub/snakeviz/issues/117

That warning is a hallmark of using cProfile on something that is threaded. Using yappi instead will result in the warning being different, but the graph will still be a bit screwy.

Snakeviz actually completely fails to display any info for some threads that flameprof at least kinda-sorta catches.

matheburg commented 2 years ago

@Entropy512 I am experiencing the same issue

Python: 3.9.13 flameprof: 0.4

459737087 commented 1 year ago

still meet this problem

OilArtLovely commented 1 year ago

Also met the same problem.