// Copyright 2021 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. #ifndef V8_HEAP_CPPGC_METRIC_RECORDER_H_ #define V8_HEAP_CPPGC_METRIC_RECORDER_H_ #include <cstdint> namespace cppgc { namespace internal { class StatsCollector; /** * Base class used for reporting GC statistics histograms. Embedders interested * in collecting histograms should implement the virtual AddMainThreadEvent * methods below and pass an instance of the implementation during Heap * creation. */ class MetricRecorder { … }; } // namespace internal } // namespace cppgc #endif // V8_HEAP_CPPGC_METRIC_RECORDER_H_