[v8-dev] Adding `OutputStream` support to `CpuProfile`

2022-09-14 Thread Juan José
Hi! I want to work on adding support to CPU profile serialization via OutputStream as the heap snapshot does. I was considering doing something like adding a new method to the CpuProfile class, it `serialize(outputStream, kJSON),` and re-using the "inspector" parser logic (to make it

Re: [v8-dev] Looking for help understanding StackFrameIterator

2022-09-14 Thread Ben Noordhuis
On Wed, Sep 14, 2022 at 6:16 PM Nathan Sandum wrote: > > I've been writing some code to trace through the stack in the middle of a > WebAssembly execution. Mostly I've just been using > v8::internal::GetCurrentStackPosition() and sorta just guessing when to stop, > but this is probably

[v8-dev] Looking for help understanding StackFrameIterator

2022-09-14 Thread Nathan Sandum
I've been writing some code to trace through the stack in the middle of a WebAssembly execution. Mostly I've just been using v8::internal::GetCurrentStackPosition() and sorta just guessing when to stop, but this is probably unreliable and unsafe. I see there exists stuff like