blob: 70ba643b983305930349d10d6905095ad6dc5037 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/trace-engine/types.h>
#include <stddef.h>
struct BenchmarkSpec {
const char* name;
trace_buffering_mode_t mode;
size_t buffer_size;
// The number of iterations is a parameter to make it easier to
// experiment and debug.
unsigned num_iterations;
// Runs benchmarks which need tracing disabled.
void RunTracingDisabledBenchmarks();
// Runs benchmarks which need tracing enabled.
void RunTracingEnabledBenchmarks(const BenchmarkSpec* spec);
// Runs benchmarks with NTRACE macro defined.
void RunNoTraceBenchmarks();