Hi!
No, there are no particular risks associated with opening a trace file in Perfetto UI beyond
those of using any other website.
Most browsers treat web content as 'untrusted' and restrict the APIs they can use. This, combined with 'sandboxing' (running the JavaScript/wasm in a separate process as done by Chrome and other web browsers) drastically reduces the surface area exploitable by a malicious trace file. Even if there was a bug in our parsers that allowed for arbitrary code execution on load it would have to be chained with
sandbox escape to be effect anything outside of the tab - such exploits are rare and valuable and very unlikely to be 'wasted' on Perfetto.
You should be more cautious with trace_processor_shell. While trace_processor_shell is fuzzed and sanitized and there are no known vulnerabilities it has, by its nature as a native program, no sandboxing, more API access, and hence, a wider surface area to attack. Even here I would suggest the risk is very low.
Cheers,
Hector