parent
e02c904fd6
commit
1a9483f3cf
@ -0,0 +1,20 @@
|
||||
import bilibili_search
|
||||
import cProfile
|
||||
|
||||
def profile_main():
|
||||
pr = cProfile.Profile()
|
||||
pr.enable()
|
||||
|
||||
# 调用函数
|
||||
bilibili_search.main()
|
||||
|
||||
pr.disable()
|
||||
pr.dump_stats('my_program.prof') # 将结果保存为二进制 .prof 文件
|
||||
print('cprofile_success!!!!!')
|
||||
if __name__ == '__main__':
|
||||
profile_main()
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue