diff options
| author | gingerBill <bill@gingerbill.org> | 2025-02-24 17:42:21 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-02-24 17:42:21 +0000 |
| commit | faaa05536f070093802fbdc4f7f62e7bd8439b64 (patch) | |
| tree | 96a5c05cffb531be7bb78c8b00cf8cc2e510f1d9 | |
| parent | d0d5cf800eb0dc039c124cc62cea74589b6e2f6c (diff) | |
Support `-show-timings` for `odin doc`
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index e8336b292..0a24d64a6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3593,10 +3593,15 @@ int main(int arg_count, char const **arg_ptr) { } if (build_context.generate_docs) { + MAIN_TIME_SECTION("generate documentation"); if (global_error_collector.count != 0) { return 1; } generate_documentation(checker); + + if (build_context.show_timings) { + show_timings(checker, &global_timings); + } return 0; } |