You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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()
|
|
|
|
|
|
|
|
|
|
|