RE: Script profiling details

2022-01-11 Thread Joseph L. Casale
> You might try `py-spy`. That worked well, I started trying to get more data from the profile output with the stats module but didn't quite get there. Thank you everyone, jlc -- https://mail.python.org/mailman/listinfo/python-list

Re: Script profiling details

2022-01-11 Thread Dieter Maurer
Joseph L. Casale wrote at 2022-1-10 18:43 +: > ... >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

Re: Script profiling details

2022-01-10 Thread Kirill Ratkin
Hi Joseph, ** Did you try scalene profiler? Recently I solved a similar problem and scalene really helped me. ** It creates a well-formed HTML report, and you can optionally enable/disable report about a code outside your project, for example - standard library. **

Re: Script profiling details

2022-01-10 Thread Barry
S > On 10 Jan 2022, at 19:29, Joseph L. Casale 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