pyperf的结果是实时的还是CPU秒级的?

问题描述 投票:0回答:1

我假设

pyperf
的输出是实时的,但我在任何地方都找不到确认。

python profiling
1个回答
0
投票

根据@Barmar的建议,

的输出
python3 -m pyperf timeit 'import time; time.sleep(10)' --debug-single-value

10.0 sec

这表明它是实时的。

© www.soinside.com 2019 - 2024. All rights reserved.