chromium/components/tracing/test/trace_event_perftest.cc

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

#include "base/trace_event/trace_event.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted_memory.h"
#include "base/pending_task.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/common/task_annotator.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "base/trace_event/traced_value.h"
#include "perf_test_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace tracing {
namespace {

BindOnce;
OnceClosure;
RunLoop;
Thread;
Unretained;
WaitableEvent;
TraceConfig;
TracedValue;
TraceLog;
TraceRecordMode;

const int kNumRuns =;
const char kMetricFlushTimeMs[] =;
const char kMetricEventSubmitTimeMs[] =;
const char kMetricEventCreateTimeMs[] =;

class TraceEventPerfTest : public ::testing::Test {};

TEST_F(TraceEventPerfTest, Submit_10000_TRACE_EVENT0) {}

TEST_F(TraceEventPerfTest, Long_TRACE_EVENT0) {}

TEST_F(TraceEventPerfTest, Create_10000_TracedValue) {}

TEST_F(TraceEventPerfTest, Submit_10000_TRACE_EVENT_with_TracedValue) {}

TEST_F(TraceEventPerfTest, Submit_10000_TRACE_EVENT0_multithreaded) {}

// Disabled due to consistent failure crbug.com/1266164.
TEST_F(TraceEventPerfTest,
       DISABLED_Submit_10000_TRACE_EVENT0_in_traceable_tasks) {}

TEST_F(TraceEventPerfTest, Submit_10000_TRACE_EVENT0_with_tracing_disabled) {}

}  // namespace
}  // namespace tracing