Do we have some flag that we can pass to swiftc
so that it displays the timings, what operations it's doing and how much time it takes it?
I tried googling it, but-- can't seem to find a correct query so that it leads me to the correct documentation or something
I am trying to build a static swift library
If you create a directory and pass it in to -stats-output-dir
, the compiler will generate a JSON file with fine-grained timers collected while running the frontend:
mkdir stats
swiftc -stats-output-dir stats foo.swift bar.swift -module-name MyApp
grep InterfaceTypeRequest.wall stats/*.json
1 Like
Diagnostic options also lists a -driver-time-compilation
flag.
2 Likes