6.4 Spec 8: Profiler

D3-TUI will use SPECTRE’s profiler for performance monitoring:

/* In main.c */
void main_loop(void) {
    d3tui_shachi_prof_frame_begin();
    
    d3tui_shachi_prof_terminal_begin();
    d3tui_term_update(terminal);
    d3tui_shachi_prof_terminal_end();
    
    d3tui_shachi_prof_render_begin();
    d3tui_term_render(terminal);
    d3tui_shachi_prof_render_end();
    
    d3tui_shachi_prof_frame_end();
}

7. Build Integration