Very Basic Profiling

This commit is contained in:
Ginger Bill
2016-10-09 20:14:32 +01:00
parent 5bffa4ee79
commit 90babbfbf3
9 changed files with 286 additions and 73 deletions

View File

@@ -346,6 +346,8 @@ void advance_to_next_rune(Tokenizer *t) {
}
TokenizerInitError init_tokenizer(Tokenizer *t, String fullpath) {
PROF_PROC();
char *c_str = gb_alloc_array(gb_heap_allocator(), char, fullpath.len+1);
memcpy(c_str, fullpath.text, fullpath.len);
c_str[fullpath.len] = '\0';