Skip to content

Commit faaa055

Browse files
committed
Support -show-timings for odin doc
1 parent d0d5cf8 commit faaa055

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3593,10 +3593,15 @@ int main(int arg_count, char const **arg_ptr) {
35933593
}
35943594

35953595
if (build_context.generate_docs) {
3596+
MAIN_TIME_SECTION("generate documentation");
35963597
if (global_error_collector.count != 0) {
35973598
return 1;
35983599
}
35993600
generate_documentation(checker);
3601+
3602+
if (build_context.show_timings) {
3603+
show_timings(checker, &global_timings);
3604+
}
36003605
return 0;
36013606
}
36023607

0 commit comments

Comments
 (0)