← Back to Memory domain

Memory.getSamplingProfile

Retrieve native memory allocations profile collected since last `startSampling` call.

Domain: Memory experimental

Returns

NameTypeDescription
profileSamplingProfile

Example Request

{
  "id": 1,
  "method": "Memory.getSamplingProfile"
}

Example Response

{
  "id": 1,
  "result": {
    "profile": "profile-value"
  }
}

Usage in Node.js

const result = await send('Memory.getSamplingProfile');
console.log(result);
// {"profile": "profile-value"}