Hi, I'm embedding v8 and have to limit max time that arbitrary script 
execution may take. 

As to script running complete event, it is more or less clear - 
v8::Isolate::AddCallCompletedCallback() will do the job, but as to catching 
start I'm stuck a bit. There is v8::Isolate::SetEventLogger() which also 
may do the job, callback receives event name and start/end flag, so I can 
strcmp() event name (the target one is V8.Execute) and track it in this 
way, but maybe there are nicer solution, like 
v8::Isolate::AddCallCompletedCallback() but for start, not complete?

Without hook, one have track any possible execution points, (not only 
v8::ScriptRun() but also v8::Value::ToString, v8::Function::Call and so 
on), which may lead to some missed execution point.

-- 
-- 
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 this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to