summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/gc-tracer.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/gc-tracer.h')
-rw-r--r--deps/v8/src/heap/gc-tracer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/src/heap/gc-tracer.h b/deps/v8/src/heap/gc-tracer.h
index 753e5d820b..e6d34cb367 100644
--- a/deps/v8/src/heap/gc-tracer.h
+++ b/deps/v8/src/heap/gc-tracer.h
@@ -347,7 +347,7 @@ class V8_EXPORT_PRIVATE GCTracer {
double time_ms = 0) const;
// Allocation throughput in the embedder in bytes/millisecond in the
- // last time_ms milliseconds. Reported through v8::EmbedderHeapTracer.
+ // last time_ms milliseconds.
// Returns 0 if no allocation events have been recorded.
double EmbedderAllocationThroughputInBytesPerMillisecond(
double time_ms = 0) const;
@@ -368,7 +368,7 @@ class V8_EXPORT_PRIVATE GCTracer {
double CurrentOldGenerationAllocationThroughputInBytesPerMillisecond() const;
// Allocation throughput in the embedder in bytes/milliseconds in the last
- // kThroughputTimeFrameMs seconds. Reported through v8::EmbedderHeapTracer.
+ // kThroughputTimeFrameMs seconds.
// Returns 0 if no allocation events have been recorded.
double CurrentEmbedderAllocationThroughputInBytesPerMillisecond() const;
@@ -409,6 +409,8 @@ class V8_EXPORT_PRIVATE GCTracer {
return current_.gc_reason == GarbageCollectionReason::kAllocationFailure;
}
+ GarbageCollector GetCurrentCollector() const;
+
private:
FRIEND_TEST(GCTracer, AverageSpeed);
FRIEND_TEST(GCTracerTest, AllocationThroughput);