PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

"Compare Performance Reports" feature is not working.

Open ttSpace opened this issue 10 months ago • 4 comments

Describe the bug

Image

Steps to Reproduce

  1. Create a new Python application project and add "Lib\test\pythoninfo.py".
  2. Debug> Launch Python Profiling …
  3. Right-click on one report and select "Compare Performance Reports…"
  4. In the prompts dialog, fill the baseline and comparison file.
  5. Click "OK".

Expected behavior

Brings up Performance Comparison window.

Image

Additional context and screenshots

No response after clicking "OK" and the Performance Comparison window does not appear.

Image

ttSpace avatar Feb 14 '25 07:02 ttSpace

  1. 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 avatar Mar 07 '25 19:03 debonte

@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')

ttSpace avatar Mar 10 '25 06:03 ttSpace

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.

debonte avatar Mar 11 '25 22:03 debonte

@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?

StellaHuang95 avatar Apr 02 '25 22:04 StellaHuang95