代码分析结果

main
pg7s85mrc 2 months ago
parent f447b4e64b
commit 8377c96c2f

@ -0,0 +1,35 @@
3008 function calls in 0.015 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.015 0.015 D:\python\作业\输出.py:40(main)
33 0.000 0.000 0.014 0.000 D:\python\作业\输出.py:31(save_to_file)
34 0.011 0.000 0.011 0.000 {built-in method io.open}
34 0.003 0.000 0.003 0.000 {method '__exit__' of '_io._IOBase' objects}
33 0.000 0.000 0.001 0.000 D:\python\作业\输出.py:18(find_top_sentences_by_keyword)
1650 0.001 0.000 0.001 0.000 {method 'lower' of 'str' objects}
1 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:6(read_file)
825 0.000 0.000 0.000 0.000 {method 'count' of 'str' objects}
105 0.000 0.000 0.000 0.000 {method 'write' of '_io.TextIOWrapper' objects}
1 0.000 0.000 0.000 0.000 {method 'read' of '_io.TextIOWrapper' objects}
1 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:12(split_into_sentences)
33 0.000 0.000 0.000 0.000 {method 'sort' of 'list' objects}
33 0.000 0.000 0.000 0.000 <frozen codecs>:186(__init__)
1 0.000 0.000 0.000 0.000 D:\python\Lib\re\__init__.py:198(split)
1 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:15(<listcomp>)
1 0.000 0.000 0.000 0.000 {method 'split' of 're.Pattern' objects}
33 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:27(<listcomp>)
1 0.000 0.000 0.000 0.000 <frozen codecs>:319(decode)
1 0.000 0.000 0.000 0.000 {built-in method _codecs.utf_8_decode}
47 0.000 0.000 0.000 0.000 D:\python\作业\输出.py:26(<lambda>)
54 0.000 0.000 0.000 0.000 {method 'strip' of 'str' objects}
33 0.000 0.000 0.000 0.000 <frozen codecs>:214(setstate)
47 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects}
1 0.000 0.000 0.000 0.000 D:\python\Lib\re\__init__.py:272(_compile)
1 0.000 0.000 0.000 0.000 <frozen codecs>:309(__init__)
1 0.000 0.000 0.000 0.000 {built-in method builtins.isinstance}
1 0.000 0.000 0.000 0.000 <frozen codecs>:260(__init__)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
Loading…
Cancel
Save