sketch out spall integration

This commit is contained in:
Ryan Fleury committed 2025-05-21 12:01:43 -07:00
1 parent 8bed56adde
commit b0fb102813
7 files changed
+104 -24

No files matched your search

+14
View File
@@ -1,2 +1,16 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#if PROFILE_SPALL
internal inline void
spall_begin(char *fmt, ...)
{
Temp scratch = scratch_begin(0, 0);
va_list args;
va_start(args, fmt);
String8 string = push_str8fv(scratch.arena, fmt, args);
spall_buffer_begin(&spall_profile, &spall_buffer, string.str, string.size, os_now_microseconds());
va_end(args);
scratch_end(scratch);
}
#endif