我正在尝试让 v8 分析和 linux-tick-processor 在我的 ubuntu 上运行。
基本上我已经完成了这些步骤:
$ git clone git://github.com/v8/v8.git v8 && cd v8
$ make dependencie
$ make native
// added d8 to $PATH
$ d8 --prof primes.js
// v8.log is created
$ /home/username/v8/tools/linux-tick-processor
但它不起作用,结果我得到:
Statistical profiling result from v8.log, (0 ticks, 0 unaccounted, 0 excludes).
所以我假设 v8.log 没有正确创建,因为这个结果与您提供给 linux-tick-processor 的每个其他文件一起说明。 我检查了 v8.log,它是用一些内容创建的:
对我来说,它似乎是正确生成的。
我尝试使用 node 进行分析,这很有效:
$ node --prof primes.js
$ /home/username/v8/tools/linux-tick-processor
// correct output
但我想使用 d8 分析。
有人对此问题有任何想法或解决方案吗?
提前致谢。
最佳答案
V8 中有一个错误。我在这里打开了一个错误报告: http://code.google.com/p/v8/issues/detail?id=2364
关于javascript - V8 分析 : linux-tick-processor not working with d8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12883182/