Python 如何按照与时间相反的顺序获取cProfile结果?

Python 如何按照与时间相反的顺序获取cProfile结果?,python,cprofile,Python,Cprofile,要分析python程序,我可以使用 python -m cProfile -s cumtime myprog.py cProfile的大多数结果都没有帮助,看起来像 1 0.000 0.000 0.000 0.000 _internal.py:848(recursive) 1 0.000 0.000 0.000 0.000 threading.py:721(BrokenBarrierError) 1 0.000

要分析python程序,我可以使用

python -m cProfile -s cumtime myprog.py
cProfile的大多数结果都没有帮助,看起来像

   1    0.000    0.000    0.000    0.000 _internal.py:848(recursive)
    1    0.000    0.000    0.000    0.000 threading.py:721(BrokenBarrierError)
    1    0.000    0.000    0.000    0.000 threading.py:1183(_MainThread)
    1    0.000    0.000    0.000    0.000 threading.py:1202(_DummyThread)
    1    0.000    0.000    0.000    0.000 tokenize.py:214(StopTokenizing)
    1    0.000    0.000    0.000    0.000 _pytesttester.py:47(PytestTester)
    1    0.000    0.000    0.000    0.000 linalg.py:52(LinAlgError)
    1    0.000    0.000    0.000    0.000 _iotools.py:478(ConverterLockError)
    1    0.000    0.000    0.000    0.000 random.py:691(seed)
    1    0.000    0.000    0.000    0.000 core.py:162(MAError)
    1    0.000    0.000    0.000    0.000 core.py:170(MaskError)
    3    0.000    0.000    0.000    0.000 core.py:873(__init__)
    1    0.000    0.000    0.000    0.000 core.py:899(_MaskedUFunc)
    1    0.000    0.000    0.000    0.000 extras.py:290(_fromnxfunction_seq)
    1    0.000    0.000    0.000    0.000 extras.py:303(_fromnxfunction_args)
    1    0.000    0.000    0.000    0.000 extras.py:328(_fromnxfunction_allargs)
人们必须向上滚动才能得到代码花费时间的真正相关结果。我怎样才能按照时间的相反顺序得到结果