Tian Gao

Results 363 comments of Tian Gao

Hmm. 4G trace file is indeed huge, but perfetto claimed to be able to handle it. I'm not entirely sure whether this is an issue with perfetto or viztracer. You...

> FYI, this issue is still happening. has there been any resolution to this? > > I have a 3.2G file I'm trying to open and see all the same...

If you can't open the trace file with original Perfetto, then there's nothing viztracer can do. viztracer is using a modified version of Perfetto but the key decoding ability is...

没明白什么叫做生成文件时自动获取.py的文件名,是说加一个random string让它不重复么?可选后缀一个timestamp是可以增加的feature,这几天有时间我做一下。

我可以加一个optional的cmdline argument去生成这样格式的文件名。但是默认的可能不好改,因为会有backward compatibility的问题。

想把viztracer每个feature都讲一下是一个非常大的工程。对于这种工具来说,大部分的宣传形式都是一个入门使用方案,然后用户觉得好了,再去研究。我目前没有任何做特别详尽的介绍的计划,如果你愿意去以任何方式聊聊viztracer,我是欢迎的。但是viztracer确实有不少相对冷门的feature……

It seems like using getattr on that object will cause infinite recursion? If this could be reproduced without viztracer, maybe it’s not a viztracer issue. Is there a note in...

如果你单纯地做`python -m viztracer XX/temp.py`会报错么?这里大概率是个权限问题。你如果用这个python直接尝试写这个文件能写的进去么?

这里是无限递归么?看起来每个path都有一个不同的parent啊。有若干种方式解决这个问题,formatter是个挺clean的方案,把parent给exclude掉也可以。你设想的使用方式是什么呢?在op这个函数下的honor_exist必然是对所有object生效的,如果你想config它就需要一个基本同样复杂的filter。还有一个方案是直接在Struct上add_objprint,应该会覆盖它的str