Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: src/debug/debug-coverage.h

Issue 2686063002: [debugger] add precise mode for code coverage. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/debug/debug-coverage.cc » ('j') | src/debug/debug-coverage.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug-coverage.h
diff --git a/src/debug/debug-coverage.h b/src/debug/debug-coverage.h
index d8cae32d589c32c44496ee9c4988bd5c55420ee8..892ff4deff4ba809d946bdee7a3259d47ad6b0f6 100644
--- a/src/debug/debug-coverage.h
+++ b/src/debug/debug-coverage.h
@@ -6,11 +6,14 @@
#define V8_DEBUG_DEBUG_COVERAGE_H_
#include <vector>
-#include "src/isolate.h"
+#include "src/allocation.h"
jgruber 2017/02/09 16:08:48 This does not seem to be needed here.
Yang 2017/02/09 17:42:15 This is for the AllStatic base class.
namespace v8 {
namespace internal {
+// Forward declaration.
+class Isolate;
+
class Coverage : public AllStatic {
public:
struct RangeEntry {
@@ -24,6 +27,11 @@ class Coverage : public AllStatic {
};
static std::vector<ScriptData> Collect(Isolate* isolate);
+
+ // Enable precise code coverage. This disables optimization and makes sure
+ // invocation count is not affected by GC.
+ static void EnablePrecise(Isolate* isolate);
+ static void DisablePrecise(Isolate* isolate);
};
} // namespace internal
« no previous file with comments | « no previous file | src/debug/debug-coverage.cc » ('j') | src/debug/debug-coverage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698