Lines Matching refs:Response
175 Response V8HeapProfilerAgentImpl::collectGarbage() {
177 return Response::OK();
180 Response V8HeapProfilerAgentImpl::startTrackingHeapObjects(
187 return Response::OK();
190 Response V8HeapProfilerAgentImpl::stopTrackingHeapObjects(
195 return Response::OK();
198 Response V8HeapProfilerAgentImpl::enable() {
200 return Response::OK();
203 Response V8HeapProfilerAgentImpl::disable() {
212 return Response::OK();
215 Response V8HeapProfilerAgentImpl::takeHeapSnapshot(Maybe<bool> reportProgress) {
217 if (!profiler) return Response::Error("Cannot access v8 heap profiler");
225 if (!snapshot) return Response::Error("Failed to take heap snapshot");
229 return Response::OK();
232 Response V8HeapProfilerAgentImpl::getObjectByHeapObjectId(
237 if (!ok) return Response::Error("Invalid heap snapshot object id");
241 if (heapObject.IsEmpty()) return Response::Error("Object is not available");
244 return Response::Error("Object is not available");
248 if (!*result) return Response::Error("Object is not available");
249 return Response::OK();
252 Response V8HeapProfilerAgentImpl::addInspectedHeapObject(
256 if (!ok) return Response::Error("Invalid heap snapshot object id");
260 if (heapObject.IsEmpty()) return Response::Error("Object is not available");
263 return Response::Error("Object is not available");
266 return Response::OK();
269 Response V8HeapProfilerAgentImpl::getHeapObjectId(
274 Response response =
276 if (!response.isSuccess()) return response;
277 if (value->IsUndefined()) return Response::InternalError();
281 return Response::OK();
319 Response V8HeapProfilerAgentImpl::startSampling(
322 if (!profiler) return Response::Error("Cannot access v8 heap profiler");
333 return Response::OK();
365 Response V8HeapProfilerAgentImpl::stopSampling(
367 Response result = getSamplingProfile(profile);
376 Response V8HeapProfilerAgentImpl::getSamplingProfile(
384 return Response::Error("V8 sampling heap profiler was not started.");
389 return Response::OK();