-ftime-trace output missing from Swift builds

Clang has built-in support to output compile times to a Catapult/Perfetto json files via -ftime-trace. But Swift doesn't support this. Is there an alternative to see inside the compile and optimization of Swift code?

Seems quite valuable to me for C++, and I have a profiler that relies on these files.

Search for -stats-output-dir and -trace-stats-events in the CompilerPerformance.md documentation.