Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracer没有显示所有的调用栈 #538

Open
shan-weiqiang opened this issue Jan 16, 2025 · 1 comment
Open

tracer没有显示所有的调用栈 #538

shan-weiqiang opened this issue Jan 16, 2025 · 1 comment

Comments

@shan-weiqiang
Copy link

hi,高工,我知道你是中国人,在B站也关注了你,所以就用中文提问了:

最近有个项目要做tracing,第一时间想到了你的viztracer,效果不错;只是有一个没看明白:在使用vscode插件显示执行栈的时候,没有全部层层明显所有的调用栈:可以看到直接从main()到了__del__函数,是viztracer优化掉了吗?

img_v3_02ij_32a62543-4906-4963-a1a0-da0cbc4ba8ag

@gaogaotiantian
Copy link
Owner

viztracer能记录的entry数量是有限的,因为它不是一个summarize。这个就是viztracer的entry buffer overflow了所以把早期的东西扔掉了。你可以通过--tracer_entries调整buffer的size。vscode插件可以找到对应的设置去配置,cmdline直接给这个argument就行。

当然你的memory和disk都是有限的,不可能记录下无限时间的无限内容,perfetto的前端显示也有一定的限制(但是现在好像不小)。所以也可以考虑通过filter减少不重要的内容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants