如何使用Python 2.7评测Pyside2 PyQt代码?
我正在嵌入式环境中运行PyQt/Pyside2。有没有办法描述它如何使用Python 2.7评测Pyside2 PyQt代码?,python,python-2.7,profile,pyside2,cprofile,Python,Python 2.7,Profile,Pyside2,Cprofile,我正在嵌入式环境中运行PyQt/Pyside2。有没有办法描述它 def onCreateInterface(): widget = MyQtWidget() return widget 我希望使用cProfile,但我没有看到将其用于此代码的方法,例如: with cProfile.run... def onCreateInterface(): widget = MyQtWidget() return widget
def onCreateInterface():
widget = MyQtWidget()
return widget
我希望使用cProfile,但我没有看到将其用于此代码的方法,例如:
with cProfile.run...
def onCreateInterface():
widget = MyQtWidget()
return widget