"Compare Performance Reports" feature is not working.
Describe the bug
Steps to Reproduce
- Create a new Python application project and add "Lib\test\pythoninfo.py".
- Debug> Launch Python Profiling …
- Right-click on one report and select "Compare Performance Reports…"
- In the prompts dialog, fill the baseline and comparison file.
- Click "OK".
Expected behavior
Brings up Performance Comparison window.
Additional context and screenshots
No response after clicking "OK" and the Performance Comparison window does not appear.
- Create a new Python application project and add "Lib\test\pythoninfo.py".
Where can I get this pythoninfo.py file?
Also, based on the perf results, it looks like you are adding some code to the auto-generated PythonApplication.py file? What's in there?
@debonte You can get it from C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\Lib\test\pythoninfo.py.
I have included the following code in PythonApplication.py file.
Code
import sys
print(sys.prefix)
print(sys.version)
def get_integer():
return 100
def get_string():
return 'hello'
get_integer()
get_string()
print('done')
Thanks, I was able to repro this on 17.14.0 Preview 2.0. It didn't repro on 17.13.0 Preview 3.0.
@ttSpace Got an update from the diagnostics hub team that they submitted a fix for it, could you please try again on the latest version and see if it still repros?