The profile runs automatically after the inspector connects and the flame graph appears after a second or two, but when I look at individual functions in the call graph, the line numbers are off. For example, there are two prune() functions that are reported to be at lines 66 and 263 of pick_tree.ts, but in the pick_tree source code, these functions are actually at 111-136 and 342-365.
Presumably the code is being transformed in some way before it's run? It would be nice if that transformation preserved newlines so that the line numbers match.
Version: Deno 1.46.2 Chrome 128.0.6613.114
I'm using the --inspect-wait flag to profile some Deno code. To reproduce:
The profile runs automatically after the inspector connects and the flame graph appears after a second or two, but when I look at individual functions in the call graph, the line numbers are off. For example, there are two prune() functions that are reported to be at lines 66 and 263 of pick_tree.ts, but in the pick_tree source code, these functions are actually at 111-136 and 342-365.
Presumably the code is being transformed in some way before it's run? It would be nice if that transformation preserved newlines so that the line numbers match.