profiling_flush
thread->post_interrupt_callback = profiling_flush;
static void profiling_flush(void*);
profiling_flush(NULL);