5 #ifndef V8_DEBUG_DEBUG_COVERAGE_H_ 6 #define V8_DEBUG_DEBUG_COVERAGE_H_ 10 #include "src/debug/debug-interface.h" 11 #include "src/handles.h" 12 #include "src/objects.h" 30 : start(s), end(e), count(c), name(n), has_block_coverage(
false) {}
36 std::vector<CoverageBlock> blocks;
37 bool has_block_coverage;
45 std::vector<CoverageFunction> functions;
48 class Coverage :
public std::vector<CoverageScript> {
55 static std::unique_ptr<Coverage> CollectPrecise(
Isolate* isolate);
58 static std::unique_ptr<Coverage> CollectBestEffort(
Isolate* isolate);
61 static void SelectMode(
Isolate* isolate, debug::Coverage::Mode mode);
64 static std::unique_ptr<Coverage> Collect(
65 Isolate* isolate, v8::debug::Coverage::Mode collectionMode);
73 #endif // V8_DEBUG_DEBUG_COVERAGE_H_