[v8-users] Question about Error.prepareStackTrace

2022-07-21 Thread theratliter theratliter
Hi all! I have a question about `Error.prepareStackTrace`. I want to collect all stacks of error and do not affect the user. V8 document said `the custom prepareStackTrace function is only called once the stack property of Error object is accessed`. And the code as follows works. Does this

[v8-users] Re: v8怎么设置settimeout

2022-07-21 Thread theratliter theratliter
settimeout 是宿主实现的,V8 没有。 在2021年10月30日星期六 UTC+8 16:54:23 写道: > v8怎么设置settimeout > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from

Re: [v8-users] Question about Error.prepareStackTrace

2022-07-28 Thread theratliter theratliter
y works locally and just prints the exceptions. > > On Thu, Jul 21, 2022 at 10:44 AM theratliter theratliter < > thera...@gmail.com> wrote: > >> Hi all! I have a question about `Error.prepareStackTrace`. I want to >> collect all stacks of error and do not affe

[v8-users] Re: Resuming use of an Isolate after TerminateExecution

2022-10-25 Thread theratliter theratliter
Interesting! What i know is we just can run context one by one in an isolate per thread. For example ``` const vm = require('vm'); try { // Node.js call TerminateExecution after 5 ms, then call CancelTerminateExecution and throw a timeout error vm.runInNewContext('while(1) {}', {}, {

Re: [v8-users] chrome dev tool

2022-10-02 Thread theratliter theratliter
scriptParsed message, it do not send a > Debugger.getScriptSource message to my inspector server. > [image: WechatIMG865.png] > > 在2022年10月1日星期六 UTC+8 17:22:25 写道: > >> On Sat, Oct 1, 2022 at 1:14 AM theratliter theratliter >> wrote: >> > >> > Hi,

Re: [v8-users] chrome dev tool

2022-10-02 Thread theratliter theratliter
spector server. >> [image: WechatIMG865.png] >> >> 在2022年10月1日星期六 UTC+8 17:22:25 写道: >> >>> On Sat, Oct 1, 2022 at 1:14 AM theratliter theratliter >>> wrote: >>> > >>> > Hi, i am trying to write an inspector server by V8 ins

Re: [v8-users] chrome dev tool

2022-10-02 Thread theratliter theratliter
022 at 11:48 AM theratliter theratliter > wrote: > > > > Hi, Ben. I think i misunderstand the dev tools. when i enter ctrl + p > and input a js file name, dev tools will emit Debugger.getScriptSource. > > Right. I don't know DevTools's code well enough to say for sure but

[v8-users] V8_COMPRESS_POINTERS flag

2022-10-02 Thread theratliter theratliter
Hi, i compile V8(10.8) with -DV8_COMPRESS_POINTERS, but when i run the code it crashes with the error as follows. ``` Embedder-vs-V8 build configuration mismatch. On embedder side sandbox is DISABLED while on V8 side it's ENABLED. ``` Does anybody know why ? thanks! -- -- v8-users mailing

Re: [v8-users] V8_COMPRESS_POINTERS flag

2022-10-02 Thread theratliter theratliter
1. it maybe related to my PC or compiler ? 在2022年10月3日星期一 UTC+8 02:26:10 写道: > On Sun, Oct 2, 2022 at 5:49 PM theratliter theratliter > wrote: > > > > Hi, i compile V8(10.8) with -DV8_COMPRESS_POINTERS, but when i run the > code it crashes with the error as follows. >

[v8-users] chrome dev tool

2022-09-30 Thread theratliter theratliter
Hi, i am trying to write an inspector server by V8 inspector APIs, but chrome dev tool do not emit 'Debugger.getScriptSource' request to my inspector server when dev tool get a 'Debugger.scriptParsed' push event. Does anybody know know about this ? Thanks ! -- -- v8-users mailing list

[v8-users] Re: chrome dev tool

2022-09-30 Thread theratliter theratliter
This is the content of ''Debugger.scriptParsed'' event. { "method": "Debugger.scriptParsed", "params": { "scriptId": "6", "url": "test/loader/module", "startLine": 0, "startColumn": 0, "endLine": 2, "endColumn": 2,

Re: [v8-users] V8_COMPRESS_POINTERS flag

2022-10-03 Thread theratliter theratliter
15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331> > > <https://github.com/v8/v8/blob/15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331> > > > On Oct 2, 2022, at 14:39, theratliter theratliter > wrote: > > Oh, sorry, i mean i compile my code with -DV8_COMPRE

[v8-users] Re: question about RequestInterrupt

2022-11-29 Thread theratliter theratliter
or like this. ``` const { Worker, isMainThread } = require('worker_threads'); if (isMainThread) { let worker; while(global.stop !== 1) { if (!worker) { worker = new Worker(__filename); } } } else { const inspector = require('inspector'); const fs = require('fs'); const

[v8-users] question about RequestInterrupt

2022-11-29 Thread theratliter theratliter
Hi, all ! i remember that we can not run JS code in v8::RequestInterrupt, But i find i can run JS code by posting a `Runtime.evaluate` command to V8 in v8::RequestInterrupt. My test is as follows (v8::RequestInterrupt is used by session.connectToMainThread() to post a message to v8). ```

Re: [v8-users] question about V8 Stack roots

2023-04-11 Thread theratliter theratliter
I find "stack roots" in heapsnapshot in Node.js v16.18.1, i think it is related to V8 Version. Thanks . 在2023年4月5日星期三 UTC+8 17:51:31 写道: > I thought i can see "stack roots" in heapsnapshot > > Ben Noordhuis 于2023年4月5日 周三16:39写道: > >> Can you explain what exactly you find surprising? >> >> --

Re: [v8-users] question about V8 Stack roots

2023-04-11 Thread theratliter theratliter
I find "stack roots" in heapsnapshot in Node.js v16.18.1, i think it is related to V8 Version. Thanks . 在2023年4月5日星期三 UTC+8 17:51:31 写道: > I thought i can see "stack roots" in heapsnapshot > > Ben Noordhuis 于2023年4月5日 周三16:39写道: > >> Can you explain what exactly you find surprising? >> >> --

Re: [v8-users] question about V8 Stack roots

2023-04-05 Thread theratliter theratliter
I thought i can see "stack roots" in heapsnapshot Ben Noordhuis 于2023年4月5日 周三16:39写道: > Can you explain what exactly you find surprising? > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are

[v8-users] question about V8 Stack roots

2023-04-04 Thread theratliter theratliter
Hi all ! does anyone know what the "Stack root" means ? the memory hold by stack variable ?[image: 飞书20230404-193425.jpg] -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google

Re: [v8-users] question about V8 Stack roots

2023-04-06 Thread theratliter theratliter
I find "stack roots" in heapsnapshot in Node.js v16.18.1, i think it is related to V8 Version. Thanks . 在2023年4月5日星期三 UTC+8 16:39:15 写道: Can you explain what exactly you find surprising? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You

[v8-users] Re: startTime of cpu profile

2023-07-31 Thread theratliter theratliter
>From the code point of view (v8/src/base/platform/time.cc), it seems that the implementation is different under different systems? 在2023年8月1日星期二 UTC+8 01:08:26 写道: > hello, anyone ! Does anyone know what startTime is in the cpu profile, it > seems to be the time since the system starts ? >

[v8-users] startTime of cpu profile

2023-07-31 Thread theratliter theratliter
hello, everyone ! Does anyone know what the `startTime` is in the cpu profile. From the code point of view (v8/src/base/platform/time.cc), it seems that the implementation is different under different systems?[image: 20230801-010505.jpeg] -- -- v8-users mailing list v8-users@googlegroups.com

Re: [v8-users] startTime of cpu profile

2023-08-01 Thread theratliter theratliter
Thanks, Ben. What does the "ts" field mean ? i can not find this field in cpu profile. I want to find the corresponding samples of the code that was executed at a certain time. 在2023年8月1日星期二 UTC+8 04:21:59 写道: > On Mon, Jul 31, 2023 at 7:58 PM theratliter theratliter > wrot

Re: [v8-users] startTime of cpu profile

2023-08-02 Thread theratliter theratliter
Get it, thanks ! 在2023年8月2日星期三 UTC+8 16:27:01 写道: > On Tue, Aug 1, 2023 at 1:22 PM theratliter theratliter > wrote: > > > > Thanks, Ben. What does the "ts" field mean ? i can not find this field > in cpu profile. I want to find the corresponding samples o

[v8-users] SetPromiseHooks and SetPromiseHooks

2023-11-25 Thread theratliter theratliter
Hi, all ! What is the difference between isolate::SetPromiseHooks and Context::SetPromiseHooks -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To