chromium/v8/test/unittests/heap/cppgc/metric-recorder-unittest.cc

// Copyright 2020 the V8 project 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 "src/heap/cppgc/metric-recorder.h"

#include "src/heap/cppgc/stats-collector.h"
#include "test/unittests/heap/cppgc/tests.h"

namespace cppgc {
namespace internal {

namespace {
class MetricRecorderImpl final : public MetricRecorder {};

// static
size_t MetricRecorderImpl::GCCycle_callcount =;
MetricRecorderImpl::GCCycle MetricRecorderImpl::GCCycle_event;
size_t MetricRecorderImpl::MainThreadIncrementalMark_callcount =;
MetricRecorderImpl::MainThreadIncrementalMark
    MetricRecorderImpl::MainThreadIncrementalMark_event;
size_t MetricRecorderImpl::MainThreadIncrementalSweep_callcount =;
MetricRecorderImpl::MainThreadIncrementalSweep
    MetricRecorderImpl::MainThreadIncrementalSweep_event;

class MetricRecorderTest : public testing::TestWithHeap {};
}  // namespace

TEST_F(MetricRecorderTest, IncrementalScopesReportedImmediately) {}

TEST_F(MetricRecorderTest, NonIncrementalScopesNotReportedImmediately) {}

TEST_F(MetricRecorderTest, CycleEndMetricsReportedOnGcEnd) {}

TEST_F(MetricRecorderTest, CycleEndHistogramReportsCorrectValues) {}

TEST_F(MetricRecorderTest, ObjectSizeMetricsNoAllocations) {}

TEST_F(MetricRecorderTest, ObjectSizeMetricsWithAllocations) {}

}  // namespace internal
}  // namespace cppgc