Script profiling details

Barry barry at barrys-emacs.org
Mon Jan 10 17:35:54 EST 2022


S

> On 10 Jan 2022, at 19:29, Joseph L. Casale <jcasale at activenetwerx.com> wrote:
> 
> I am trying to track down a slow script startup time. I have executed the
> script using `python -m cProfile -o profile /path/script.py` and read through
> the results, but the largest culprit only shows various built-ins.
> 
> I expected this given the implementation, but I was hoping to get some
> finer details so I can track down the specific module or at least the specific
> file so I have a place to start reviewing code for optimizations.
> 
> Is there something I can use to analyze the existing profile output or to generate
> it with more feedback?

Read the profile analyses docs/code and report using options that show you which callers are using the builtins.

If you need details reply and I will look at the scripts I use that produce a number of report types,

Barry
> 
> Thanks,
> jlc
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list