X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_profiler.h;h=67808a7a6d42d898f42e747d0be49f0a4528b8aa;hb=76d234b7dc5e6500e8a54009b367e7620f11ef97;hp=dedea02ca887fb9ef6ca9bbddf2b8cd510a68201;hpb=ad701a4bd7ea7022de1a1d975564f5a34bd1e22b;p=vg.git diff --git a/vg_profiler.h b/vg_profiler.h index dedea02..67808a7 100644 --- a/vg_profiler.h +++ b/vg_profiler.h @@ -26,12 +26,12 @@ struct vg_profile u64 start; }; -VG_STATIC void vg_profile_begin( struct vg_profile *profile ) +static void vg_profile_begin( struct vg_profile *profile ) { profile->start = SDL_GetPerformanceCounter(); } -VG_STATIC void vg_profile_increment( struct vg_profile *profile ) +static void vg_profile_increment( struct vg_profile *profile ) { profile->buffer_current ++; @@ -44,7 +44,7 @@ VG_STATIC void vg_profile_increment( struct vg_profile *profile ) profile->samples[ profile->buffer_current ] = 0; } -VG_STATIC void vg_profile_end( struct vg_profile *profile ) +static void vg_profile_end( struct vg_profile *profile ) { u64 time_end = SDL_GetPerformanceCounter(), delta = time_end - profile->start; @@ -58,7 +58,7 @@ VG_STATIC void vg_profile_end( struct vg_profile *profile ) } } -VG_STATIC void vg_profile_drawn( struct vg_profile **profiles, u32 count, +static void vg_profile_drawn( struct vg_profile **profiles, u32 count, float budget, ui_rect panel, u32 colour_offset ) { if( !vg_profiler ) @@ -135,7 +135,7 @@ VG_STATIC void vg_profile_drawn( struct vg_profile **profiles, u32 count, } } -VG_STATIC void vg_profiler_init(void) +static void vg_profiler_init(void) { VG_VAR_I32( vg_profiler, flags=VG_VAR_PERSISTENT ); }