v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
metric-recorder.h
Go to the documentation of this file.
1// Copyright 2021 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_HEAP_CPPGC_METRIC_RECORDER_H_
6#define V8_HEAP_CPPGC_METRIC_RECORDER_H_
7
8#include <cstdint>
9
10namespace cppgc {
11namespace internal {
12
13class StatsCollector;
14
22 public:
50
52 int64_t duration_us = -1;
53 };
54
56 int64_t duration_us = -1;
57 };
58
59 virtual ~MetricRecorder() = default;
60
61 virtual void AddMainThreadEvent(const GCCycle& event) {}
62 virtual void AddMainThreadEvent(const MainThreadIncrementalMark& event) {}
63 virtual void AddMainThreadEvent(const MainThreadIncrementalSweep& event) {}
64};
65
66} // namespace internal
67} // namespace cppgc
68
69#endif // V8_HEAP_CPPGC_METRIC_RECORDER_H_
virtual ~MetricRecorder()=default
virtual void AddMainThreadEvent(const GCCycle &event)
virtual void AddMainThreadEvent(const MainThreadIncrementalMark &event)
virtual void AddMainThreadEvent(const MainThreadIncrementalSweep &event)