git/trace2/tr2_tmr.c

#include "git-compat-util.h"
#include "trace2/tr2_tgt.h"
#include "trace2/tr2_tls.h"
#include "trace2/tr2_tmr.h"
#include "trace.h"

#define MY_MAX(a, b)
#define MY_MIN(a, b)

/*
 * A global timer block to aggregate values from the partial sums from
 * each thread.
 */
static struct tr2_timer_block final_timer_block; /* access under tr2tls_mutex */

/*
 * Define metadata for each stopwatch timer.
 *
 * This array must match "enum trace2_timer_id" and the values
 * in "struct tr2_timer_block.timer[*]".
 */
static struct tr2_timer_metadata tr2_timer_metadata[TRACE2_NUMBER_OF_TIMERS] =;

void tr2_start_timer(enum trace2_timer_id tid)
{}

void tr2_stop_timer(enum trace2_timer_id tid)
{}

void tr2_update_final_timers(void)
{}

void tr2_emit_per_thread_timers(tr2_tgt_evt_timer_t *fn_apply)
{}

void tr2_emit_final_timers(tr2_tgt_evt_timer_t *fn_apply)
{}