1. Profile Richards of v8 benchmark:
$ perf record -R -e cycles -c 10000 -f ../shell_g run.js --ll-prof
Richards: 8296
----
Score (version 6): 8296
[ perf record: Woken up 46 times to write data ]
[ perf record: Captured and wrote 11.464 MB perf.data (~500863
samples) ]
2. Use ll_prof.py to process collected data
$ ../tools/ll_prof.py --disasm-top=10
but ...
V8 log: v8.log, v8.log.ll (no snapshot)
Perf trace file: perf.data
Generated code architecture: ia32
Traceback (most recent call last):
File "../tools/ll_prof.py", line 902, in <module>
library_repo.Load(mmap_info, code_map, options)
File "../tools/ll_prof.py", line 695, in Load
if not os.path.exists(mmap_info.filename):
File "/usr/lib/python2.7/genericpath.py", line 18, in exists
os.stat(path)
TypeError: must be encoded string without NULL bytes, not str
Does anyone know what problem?
Thanks.
Regards,
Tat-Wai
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users