chromium/base/debug/stack_trace_perftest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <vector>

#include "base/containers/span.h"
#include "base/debug/stack_trace.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "base/timer/lap_timer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"

namespace base {
namespace debug {

// Change kTimeLimit to something higher if you need more time to capture a
// trace.
constexpr base::TimeDelta kTimeLimit =;
constexpr int kWarmupRuns =;
constexpr int kTimeCheckInterval =;
constexpr char kMetricStackTraceDuration[] =;
constexpr char kMetricStackTraceThroughput[] =;
constexpr int kNumTracerObjAllocs =;

perf_test::PerfResultReporter SetUpReporter(const std::string& story_name) {}

class StackTracer {};

void MultiObjTest(size_t trace_count) {}

class StackTracePerfTest : public testing::TestWithParam<size_t> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(StackTracePerfTest, MultiObj) {}

}  // namespace debug
}  // namespace base