2 #include "vg_platform.h"
4 #define VG_PROFILE_SAMPLE_COUNT 128
6 extern int vg_profiler
;
12 u64 samples
[ VG_PROFILE_SAMPLE_COUNT
];
13 u32 buffer_count
, buffer_current
;
25 void vg_profile_begin( struct vg_profile
*profile
);
26 void vg_profile_increment( struct vg_profile
*profile
);
27 void vg_profile_end( struct vg_profile
*profile
);
28 void vg_profile_drawn( struct vg_profile
**profiles
, u32 count
,
29 f64 budget
, ui_rect panel
,
30 int dir
, i32 normalize
);
31 void vg_profiler_init(void);