summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/memory-measurement.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/memory-measurement.h')
-rw-r--r--deps/v8/src/heap/memory-measurement.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/deps/v8/src/heap/memory-measurement.h b/deps/v8/src/heap/memory-measurement.h
new file mode 100644
index 0000000000..6de7c8c970
--- /dev/null
+++ b/deps/v8/src/heap/memory-measurement.h
@@ -0,0 +1,29 @@
+// Copyright 2019 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_MEMORY_MEASUREMENT_H_
+#define V8_HEAP_MEMORY_MEASUREMENT_H_
+
+#include "src/common/globals.h"
+#include "src/objects/objects.h"
+
+namespace v8 {
+namespace internal {
+
+class Heap;
+
+class V8_EXPORT_PRIVATE MemoryMeasurement {
+ public:
+ explicit MemoryMeasurement(Isolate* isolate);
+ Handle<JSPromise> EnqueueRequest(Handle<NativeContext> context,
+ v8::MeasureMemoryMode mode);
+
+ private:
+ Isolate* isolate_;
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif // V8_HEAP_MEMORY_MEASUREMENT_H_