Index: src/inspector/v8-profiler-agent-impl.cc |
diff --git a/src/inspector/v8-profiler-agent-impl.cc b/src/inspector/v8-profiler-agent-impl.cc |
index d57d37adebec8ffe0b6ebd666ba34d65f547f749..af13e7e81bf273dd013e30ae6d030ebfc52db73f 100644 |
--- a/src/inspector/v8-profiler-agent-impl.cc |
+++ b/src/inspector/v8-profiler-agent-impl.cc |
@@ -273,14 +273,15 @@ Response V8ProfilerAgentImpl::stop( |
Response V8ProfilerAgentImpl::startPreciseCoverage() { |
if (!m_enabled) return Response::Error("Profiler is not enabled"); |
m_state->setBoolean(ProfilerAgentState::preciseCoverageStarted, true); |
- v8::debug::Coverage::TogglePrecise(m_isolate, true); |
+ v8::debug::Coverage::SelectMode(m_isolate, |
+ v8::debug::Coverage::kPreciseCount); |
return Response::OK(); |
} |
Response V8ProfilerAgentImpl::stopPreciseCoverage() { |
if (!m_enabled) return Response::Error("Profiler is not enabled"); |
m_state->setBoolean(ProfilerAgentState::preciseCoverageStarted, false); |
- v8::debug::Coverage::TogglePrecise(m_isolate, false); |
+ v8::debug::Coverage::SelectMode(m_isolate, v8::debug::Coverage::kBestEffort); |
return Response::OK(); |
} |