Lines Matching refs:Response
204 Response V8ProfilerAgentImpl::enable() {
205 if (m_enabled) return Response::OK();
210 return Response::OK();
213 Response V8ProfilerAgentImpl::disable() {
214 if (!m_enabled) return Response::OK();
223 return Response::OK();
226 Response V8ProfilerAgentImpl::setSamplingInterval(int interval) {
228 return Response::Error("Cannot change sampling interval when profiling.");
231 return Response::OK();
250 Response V8ProfilerAgentImpl::start() {
251 if (m_recordingCPUProfile) return Response::OK();
252 if (!m_enabled) return Response::Error("Profiler is not enabled");
257 return Response::OK();
260 Response V8ProfilerAgentImpl::stop(
263 return Response::Error("No recording profiles found");
269 if (!profile->get()) return Response::Error("Profile is not found");
273 return Response::OK();