flameprof
                                
                                 flameprof copied to clipboard
                                
                                    flameprof copied to clipboard
                            
                            
                            
                        Flameprof is failing to parse profile output
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
I’m having the same problem. Running on:
- Ubuntu 20.04
- Python 3.8.2
Just to be clear, an SVG is being produced. But it I don't have confidence in it.
same problem
- macOS: 11.5.2 (20G95) Intel
- Anaconda Python: Python 3.9.7 | packaged by conda-forge | (default, Sep 2 2021, 17:58:46)
https://jiffyclub.github.io/snakeviz/ is an alternative, for those who can't use flameprof.
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.
@Entropy512 I am experiencing the same issue
- without threading, while
- snakeviz is working on the same .proffile.
Python: 3.9.13
flameprof: 0.4