?? profile.py
字號(hào):
#!/usr/bin/pythonfrom yahoo.search import webservicesfrom yahoo.search.debug import DEBUG_LEVELSimport hotshotdef tester(): x = webservices.create_search("web", "YahooDemo", query="leif hedstrom", results=20) srch = x.parse_results()if __name__ == "__main__": prof = hotshot.Profile("ysearch.prof", lineevents=1) prof.runcall(tester) prof.close() print "Convert this to a kcachegrind callstack with:" print "hotshot2calltree -o ysearch.out ysearch.prof"
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -