I tried moving SetFlagsFromCommandLine() to be the first V8 API call 
(before any initialization takes place), and running my application again.

After executing linux-tick-processor on the new log file, it looks like d8 
is crashing after 5 seconds into its run.

# tools/linux-tick-processor /mydir/isolate-0x7f566004dbb0-v8.log
which: no d8 in 
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/depot_tools:/usr/lib/vslick/bin:/usr/lib/jvm/java-1.7.0/bin)
tools/linux-tick-processor: line 41:  2855 Broken pipe             cat 
$log_file
      2856 Segmentation fault      | $d8_exec $tools_path/splaytree.js 
$tools_path/codemap.js $tools_path/csvparser.js $tools_path/consarray.js 
$tools_path/profile.js $tools_path/profile_view.js $tools_path/logreader.js 
$tools_path/tickprocessor.js $tools_path/SourceMap.js 
$tools_path/tickprocessor-driver.js -- $@ 2> /dev/null

Adding  --nocompact_code_space makes no difference. The crash is still 
there. Please assist.

On Monday, May 2, 2016 at 1:47:58 PM UTC+3, Ben Noordhuis wrote:
>
> On Sun, May 1, 2016 at 2:45 PM, Danny Dorfman <wilder...@gmail.com 
> <javascript:>> wrote: 
> > Hello there, 
> > 
> > I have been trying to activate V8;s internal profiler by running 
> > V8::SetFlagsFromCommandLine() from my code (with "--log-timer-events" 
> and 
> > "--prof" as parameters). The code runs, and several log files are 
> created. 
> > I tried processing the log files with tools/linux-tick-processor, but 
> the 
> > script aborts with this error: 
> > 
> > Code move event for unknown code: 0x2d6bba36c7a0 
> > Statistical profiling result from /mydir/isolate-0x7f498c04dbc0-v8.log, 
> (0 
> > ticks, 0 unaccounted, 0 excluded). 
> > 
> > Any idea what this means? The log file has a lot of lines in it, but I 
> think 
> > the relevant segment looks like this: 
> > ... 
> > code-move,0x2d6bba45fdc0,0x2d6bba52e080 
> > code-move,0x2d6bba45fea0,0x2d6bba52e160 
> > code-move,0x2d6bba36c7a0,0x2d6bba52e220 
> > code-move,0x2d6bba36c920,0x2d6bba52e3a0 
> > code-move,0x2d6bba36cb60,0x2d6bba52e5e0 
> > ... 
> > 
> > I use the latest build of version 4.9. 
> > 
> > Regards, 
> > Danny 
>
> I assume V8 is already running by the time you call 
> SetFlagsFromCommandLine()? 
>
> The warning you see is what you get when tickprocessor.js sees ticks 
> in JS code that existed before the profiler was started, because those 
> don't have a corresponding code-creation entry in the log file. 
>
> You could try including --nocompact_code_space but YMMV; use at your own 
> risk. 
>

-- 
-- 
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