chromium/third_party/blink/renderer/platform/scheduler/main_thread/main_thread_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 "base/barrier_closure.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
#include "third_party/blink/renderer/platform/scheduler/common/task_priority.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_scheduler_impl.h"
#include "third_party/blink/renderer/platform/testing/scoped_scheduler_overrider.h"

// Too slow with TSAN.
#if !defined(THREAD_SANITIZER)

namespace blink {
namespace scheduler {
namespace {

constexpr char kMetricPrefix[] =;
// Includes time to |PostTask()|.
constexpr char kTimePerTask[] =;
// Time to |PostTask()|.
constexpr char kTimePerPostTask[] =;
// |time_per_task| - |time_per_post_task|.
constexpr char kTimePerTaskRun[] =;

class MainThreadPerfTest : public testing::Test {};

TEST_F(MainThreadPerfTest, PostTaskPerformance) {}

}  // namespace
}  // namespace scheduler
}  // namespace blink

#endif  // defined(THREAD_SANITIZER)