默认使用systrace.py -t 10 参数抓取到的trace文件,实际抓到的时间只有4s
如果想抓取超过4s的trace文件,需要设置systrace trace buffer大小。
举个例子:
python systrace.py -b 81920 -t 10 -o test_1024.html
这个case会设置trace buffer到比较大的size,但是同时也限定了抓取的时间为10s
默认使用systrace.py工具抓取的trace文件时间为4秒,若需更长时间的跟踪,需调整systrace的tracebuffer大小。例如,命令`pythonsystrace.py-b81920-t10-otest_1024.html`设置buffer为81920字节并限制抓取时间为10秒。这样能捕获更完整的系统性能数据。
默认使用systrace.py -t 10 参数抓取到的trace文件,实际抓到的时间只有4s
如果想抓取超过4s的trace文件,需要设置systrace trace buffer大小。
举个例子:
python systrace.py -b 81920 -t 10 -o test_1024.html
这个case会设置trace buffer到比较大的size,但是同时也限定了抓取的时间为10s
1236
3084
984

被折叠的 条评论
为什么被折叠?