【发布时间】:2022-10-19 03:59:21
【问题描述】:
以下最小的工作示例
from pycallgraph2 import PyCallGraph
from pycallgraph2.output import GraphvizOutput
with PyCallGraph(output=GraphvizOutput()):
None
产生这个输出:
Why does PyCallGraph2 describe itself while profiling "Hello, World"? 表明我们可以通过命令行排除命名空间中的某些内容。现在我想在脚本中执行此操作。
【问题讨论】:
标签: pycallgraph