> On 17 Jan 2022, at 06:35, Tim Peters <tim.pet...@gmail.com> wrote:
> 
> [Guido]
>> I don't think there's a way to do a PGO build from Visual Studio; but
>> a command prompt in the repo can do it using `PCbuild\build.bat --pgo`.
>> Just be patient with it.
> 
> Thanks! That worked, and was easy, and gave me an executable that runs
> "// 10" at supernatural speed.
> 
> Alas, Visual Studio will not show a disassembly window unless the
> debugger is running, and there appears to be no way to convince it to
> run its debugger without it first recompiling the source file you're
> staring at. Which it recomplies without benefit of PGO.

The trick you need is to close the project you use to build python
from source then you can open the python.exe and run that under the
debugger. Because it can find the python.pdb it will source/disasm as
you want. 

Barry


> 
> So, in the end, it was an elaborate way to reproduce the ;non-PGO
> optimized machine code I already saw :-)
> _______________________________________________
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at 
> https://mail.python.org/archives/list/python-dev@python.org/message/D47HHYYASRHS56AZL6SEK4Y7K5FNSJOP/
> Code of Conduct: http://python.org/psf/codeofconduct/
> 

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/HYSQAPPREFZPYSNMEJCWY5EKICX2R4RV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to