aboutsummaryrefslogtreecommitdiff
path: root/src/profiler.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-23 14:46:52 +0100
committerGinger Bill <bill@gingerbill.org>2016-10-23 14:46:52 +0100
commitbd5d095de4a3a3de574f6004751718ee944417cc (patch)
tree0eaceb775794fe21073c2b4159287ae08b99c3e3 /src/profiler.cpp
parentf60dc7b0a7f8bf8122df0fa3b4d12603a9775f87 (diff)
Separate ssa_struct_gep and ssa_array_gep procedures
Diffstat (limited to 'src/profiler.cpp')
-rw-r--r--src/profiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profiler.cpp b/src/profiler.cpp
index 388e99b4f..6d4093f8c 100644
--- a/src/profiler.cpp
+++ b/src/profiler.cpp
@@ -23,7 +23,7 @@ i64 prof_get_timestamp(void) {
void prof_init(void) {
#if defined(PROF_TIMINGS)
- map_init(&global_profiler.info, gb_heap_allocator());
+ map_init(&global_profiler.info, heap_allocator());
global_profiler.start_time = prof_get_timestamp();
#endif
}
@@ -88,8 +88,8 @@ void prof_print_all(void) {
isize pad_len = gb_size_of(spaces)-1;
isize info_count = global_profiler.info.entries.count;
- ProfInfo *info_data = gb_alloc_array(gb_heap_allocator(), ProfInfo, info_count);
- defer (gb_free(gb_heap_allocator(), info_data));
+ ProfInfo *info_data = gb_alloc_array(heap_allocator(), ProfInfo, info_count);
+ defer (gb_free(heap_allocator(), info_data));
for (isize i = 0; i < info_count; i++) {
info_data[i] = global_profiler.info.entries[i].value;
}