profiler_stop
Stop query profiling in ArcadeDB to analyze performance data, including execution statistics, timing metrics, and plan costs, with results saved for review.
Instructions
Stop the query profiler and return the captured profiling data. Returns aggregated query statistics including execution counts, timing (min/max/avg/p99), and execution plan step costs. Results are also saved to disk for later retrieval.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The 'profilerStop' function is a client-side handler that sends a 'profiler stop' command via an AJAX POST request to the server API 'api/v1/server'. It handles the stop operation for the ArcadeDB profiler.
function profilerStop() { jQuery.ajax({ type: "POST", url: "api/v1/server", data: JSON.stringify({ command: "profiler stop" }), headers: { Authorization: globalCredentials }, contentType: "application/json", success: function(data) { profilerSetRecordingUI(false); profilerData = typeof data === "string" ? JSON.parse(data) : data; profilerRenderResults(); profilerLoadSavedRuns(); globalNotify("Profiler", "Recording stopped — " + (profilerData.totalQueries || 0) + " queries captured", "success"); }, error: function(jqXHR) { globalNotifyError(jqXHR.responseText); } }); }