aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-09 20:14:32 +0100
committerGinger Bill <bill@gingerbill.org>2016-10-09 20:14:32 +0100
commit90babbfbf30cc9c611af74e8c0af3562faf4d58b (patch)
tree72fa8156a0dfececd67a3ad0943fa16661385503 /src/tokenizer.cpp
parent5bffa4ee793a891237538cb4d18754bed4d43748 (diff)
Very Basic Profiling
Diffstat (limited to 'src/tokenizer.cpp')
-rw-r--r--src/tokenizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index c7c423512..f7a4d5cf1 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -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';