* Starting CPU Profile. * @param {object} [options] * @param {number} [options.sampleInterval] * @param {number} [options.maxBufferSize] * @returns {SyncCPUProfileHandle}
(options)
| 223 | * @returns {SyncCPUProfileHandle} |
| 224 | */ |
| 225 | function startCpuProfile(options) { |
| 226 | const { |
| 227 | samplingIntervalMicros, |
| 228 | maxSamples, |
| 229 | } = normalizeCpuProfileOptions(options); |
| 230 | const id = _startCpuProfile(samplingIntervalMicros, maxSamples); |
| 231 | return new SyncCPUProfileHandle(id); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Starting Heap Profile. |
nothing calls this directly
no test coverage detected