Index: src/debug/debug-interface.h |
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h |
index c36784b93311bf71c8915244ce3d4905d825f00d..905a71e8628977c14f4eed6dd16143119be58f40 100644 |
--- a/src/debug/debug-interface.h |
+++ b/src/debug/debug-interface.h |
@@ -215,6 +215,14 @@ class GeneratorObject { |
*/ |
class V8_EXPORT_PRIVATE Coverage { |
public: |
+ enum Mode { |
+ // Make use of existing information in feedback vectors on the heap. |
+ kBestEffort, |
+ // Disable optimization and prevent feedback vectors from being garbage |
+ // collected in order to get precise invocation counts. |
+ kPreciseCount, |
+ }; |
+ |
class ScriptData; // Forward declaration. |
class V8_EXPORT_PRIVATE FunctionData { |
@@ -247,7 +255,7 @@ class V8_EXPORT_PRIVATE Coverage { |
static Coverage Collect(Isolate* isolate, bool reset_count); |
- static void TogglePrecise(Isolate* isolate, bool enable); |
+ static void SelectMode(Isolate* isolate, Mode mode); |
size_t ScriptCount(); |
ScriptData GetScriptData(size_t i); |