repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* transcode.c (trans_open_i): check the result of rb_transcoding_open.
[ruby-svn.git]
/
tool
/
vtlh.rb
blob
fcd3630821233ff309b0758d8af2b6146f0846b0
1
# ARGF = open('ha')
2
cd = `pwd`.chomp + '/'
3
ARGF.each{|line|
4
if /^0x([a-z0-9]+),/ =~ line
5
stat = line.split(',')
6
addr = stat[0].hex + 0x00400000
7
retired = stat[2].to_i
8
ticks = stat[3].to_i
9
10
src = `addr2line -e miniruby.exe #{addr.to_s(16)}`.chomp
11
src.sub!(cd, '')
12
puts '%-40s 0x%08x %8d %8d' % [src, addr, retired, ticks]
13
end
14
}
15