janestreet/magic-trace

magic-trace gives [unknown] symbol for symbols containing spaces

Closed this issue · 1 comments

magic-trace gives [unknown] symbol in the perfetto profile for symbols containing whitespace.

This is a very common scenario for C++ template types.

Perf handles those fine by itself.

The regex at https://github.com/janestreet/magic-trace/blob/master/src/perf_tool_backend.ml#L104 is failing. It should probably use proper parsing instead.

Xyene commented

Could you give #6 a try?

It works for me on a toy program, but I don't have a big C++ codebase to run it against.

p