【发布时间】:2015-11-11 21:37:34
【问题描述】:
我有一个非常慢的 foswiki 安装(未缓存页面大约需要 60 秒)。根据http://foswiki.org/Support/NYTProfDebugging,我尝试使用 NYTProf 分析安装,使用以下命令:
> sudo -u www-data NYTPROF="file=/tmp/nytprof.out:addpid=1:endatexit=1" perl -wTd:NYTProf view -topic Some.Topic -username MyUsername
当我使用分析器运行脚本时,脚本失败并显示退出代码141。如果我在没有分析器的情况下运行它(远程 d:NYTProf),它会成功退出并产生输出。
分析后,我在 /tmp 目录中获得了一堆配置文件:
nytprof.out.[841-1860]
但是当我尝试合并这些文件时,我收到第一个文件的错误:
> nytprofmerge nytprof.out.*
Profile data incomplete, inflate error -5 ((null)) at end of input file, perhaps the process didn't exit cleanly or the file has been truncated (refer to TROUBLESHOOTING in the documentation)
我可以在没有第一个文件的情况下合并文件,但结果没有用,并且只显示了对 Foswiki::Sandbox::CORE:open 的 87 次调用,仅此而已。
我是否有机会获得有效的分析结果?或者在这种情况下我可以使用其他工具吗?
【问题讨论】:
标签: perl foswiki devel-nytprof