Skip to content

Commit f692dbc

Browse files
authored
Merge pull request #168 from genya0407/feature/show-linenum-in-d3-flamegraph
Show line number in d3-flamegraph
2 parents d5f2f2b + e94699d commit f692dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/stackprof/report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def convert_to_d3_flame_graph_format(name, stacks, depth)
225225
end
226226
else
227227
frame = @data[:frames][val]
228-
child_name = "#{ frame[:name] } : #{ frame[:file] }"
228+
child_name = "#{ frame[:name] } : #{ frame[:file] } : #{ frame[:line] }"
229229
child_data = convert_to_d3_flame_graph_format(child_name, child_stacks, depth + 1)
230230
weight += child_data["value"]
231231
children << child_data

0 commit comments

Comments
 (0)