fix use of old functions in spall profiling code

This commit is contained in:
Ryan Fleury committed 2026-08-11 08:24:55 -07:00
1 parent a016caea59
commit 7cc61e75e4
1 file changed
+5 -5
+5 -5
View File
@@ -8,22 +8,22 @@ spall_begin(char *fmt, ...)
if(spall_buffer.data == 0) if(spall_buffer.data == 0)
{ {
spall_buffer.length = MB(1); spall_buffer.length = MB(1);
spall_buffer.data = os_reserve(spall_buffer.length); spall_buffer.data = reserve_memory(spall_buffer.length);
os_commit(spall_buffer.data, spall_buffer.length); commit_memory(spall_buffer.data, spall_buffer.length);
spall_buffer_init(&spall_profile, &spall_buffer); spall_buffer_init(&spall_profile, &spall_buffer);
} }
if(spall_pid == 0) if(spall_pid == 0)
{ {
spall_pid = os_get_process_info()->pid; spall_pid = get_process_info()->pid;
} }
if(spall_tid == 0) if(spall_tid == 0)
{ {
spall_tid = os_tid(); spall_tid = tid();
} }
Temp scratch = scratch_begin(0, 0); Temp scratch = scratch_begin(0, 0);
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
String8 string = push_str8fv(scratch.arena, fmt, args); String8 string = str8fv(scratch.arena, fmt, args);
spall_buffer_begin_ex(&spall_profile, &spall_buffer, string.str, string.size, now_time_us(), spall_tid, spall_pid); spall_buffer_begin_ex(&spall_profile, &spall_buffer, string.str, string.size, now_time_us(), spall_tid, spall_pid);
va_end(args); va_end(args);
scratch_end(scratch); scratch_end(scratch);