adjust spall usage code - still not generating multi-thread events correctly...

This commit is contained in:
Ryan Fleury
2025-05-22 09:58:09 -07:00
parent 3fcdb85ebf
commit 25813e62ea
4 changed files with 11 additions and 9 deletions
+7
View File
@@ -5,6 +5,13 @@
internal inline void
spall_begin(char *fmt, ...)
{
if(spall_buffer.data == 0)
{
spall_buffer.length = MB(1);
spall_buffer.data = os_reserve(spall_buffer.length);
os_commit(spall_buffer.data, spall_buffer.length);
spall_buffer_init(&spall_profile, &spall_buffer);
}
if(spall_pid == 0)
{
spall_pid = os_get_process_info()->pid;