diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-13 15:54:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-13 15:54:56 +0100 |
| commit | ed5a4afc8c308c6db12d29d89b70738033ff46ec (patch) | |
| tree | ae37e745808fcf0ea11f8e344d5256ad865dec8f /src/timings.cpp | |
| parent | f29b51efddcc90c4545119fa77772e4a03e71719 (diff) | |
Temporarily disable `-threaded-checker`; Restructure the untyped-expr-info system to be much more thread-friendly
Diffstat (limited to 'src/timings.cpp')
| -rw-r--r-- | src/timings.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/timings.cpp b/src/timings.cpp index 594f6d27e..b1fbdb952 100644 --- a/src/timings.cpp +++ b/src/timings.cpp @@ -104,14 +104,14 @@ u64 time_stamp__freq(void) { #endif } -TimeStamp make_time_stamp(String label) { +TimeStamp make_time_stamp(String const &label) { TimeStamp ts = {0}; ts.start = time_stamp_time_now(); ts.label = label; return ts; } -void timings_init(Timings *t, String label, isize buffer_size) { +void timings_init(Timings *t, String const &label, isize buffer_size) { array_init(&t->sections, heap_allocator(), 0, buffer_size); t->total = make_time_stamp(label); t->freq = time_stamp__freq(); @@ -127,7 +127,8 @@ void timings__stop_current_section(Timings *t) { } } -void timings_start_section(Timings *t, String label) { +void timings_start_section(Timings *t, String const &label) { + // gb_printf_err("[%.*s]\n", LIT(label)); timings__stop_current_section(t); array_add(&t->sections, make_time_stamp(label)); } |