Skip to content

Commit

Permalink
fix variable name.
Browse files Browse the repository at this point in the history
fd2cffa modified to use `addr`,
but `val` is correct variable to use here.
  • Loading branch information
ko1 committed Jul 8, 2020
1 parent ae980e1 commit 0078cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stackprof/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def convert_to_d3_flame_graph_format(name, stacks, depth)
weight += stack.last
end
else
frame = @data[:frames][addr]
frame = @data[:frames][val]
child_name = "#{ frame[:name] } : #{ frame[:file] }"
child_data = convert_to_d3_flame_graph_format(child_name, child_stacks, depth + 1)
weight += child_data["value"]
Expand Down

0 comments on commit 0078cf2

Please sign in to comment.