Query parameters
-
Time window to collect samples over, in milliseconds, from 1 ms to 15 minutes. The profiler runs for the whole window even when
cpu_profiler_enabledisfalse. The response contains only samples taken during the window. When omitted, the response contains the samples already collected.
GET
/v1/debug/cpu_profile
curl \
--request GET 'http://localhost:9644/v1/debug/cpu_profile'
Response examples (200)
[
{
"shard_id": 42,
"dropped_samples": 42,
"samples": [
{
"user_backtrace": "string",
"occurrences": 42
}
]
}
]
Response examples (400)
Shard_error
{
"message": "Invalid shard ID, check shard limit",
"code": 400
}
{
"message": "wait_ms must be between 1ms and 15min",
"code": 400
}