node/lib/metasm/samples/dbg-plugins/heapscan/heapscan.rb
def dump_graph(fname='graph.gv', graph=@xrchunksto)
		File.open(fname, 'w') { |fd|
			fd.puts "digraph foo {"
			graph.each { |b, l|
				fd.puts l.map { |e| '"%x" -> "%x";' % [b, e] }
			}
			fd.puts "}"
		}
	end
# dump the whole graph in a dot file
dump the whole graph in a dot file
dump the whole graph in a dot file
def dump_graph(fname='graph.gv', graph=@xrchunksto)
		File.open(fname, 'w') { |fd|
			fd.puts "digraph foo {"
			graph.each { |b, l|
				fd.puts l.map { |e| '"%x" -> "%x";' % [b, e] }
			}
			fd.puts "}"
		}
	end
def dump_graph ( fname = 'graph.gv' , graph = @xrchunksto ) File . open ( fname , 'w' ) { | fd | fd . puts "digraph foo {" graph . each { | b , l | fd . puts l . map { | e | '"%x" -> "%x";' % [ b , e ] } } fd . puts "}" } end
dump the whole graph in a dot file
dump the whole graph in a dot file
fname
graph