Mstop
Bun

method

v8.HeapProfileHandle.stop

stop(): Promise<string>;

Stopping collecting the profile, then return a Promise that fulfills with an error or the profile data.