Revision: 15430
Author:   [email protected]
Date:     Mon Jul  1 08:34:57 2013
Log:      Edited wiki page V8Profiler through web user interface.
http://code.google.com/p/v8/source/detail?r=15430

Modified:
 /wiki/V8Profiler.wiki

=======================================
--- /wiki/V8Profiler.wiki       Thu Nov 29 04:47:21 2012
+++ /wiki/V8Profiler.wiki       Mon Jul  1 08:34:57 2013
@@ -111,3 +111,33 @@
     181  100.0%          LazyCompile: RSADoPrivate crypto.js:1628
     ...
 }}}
+
+= Timeline plot =
+The timeline plot visualizes where V8 is spending time. This can be used to find bottlenecks and spot things that are unexpected (for example, too much time spent in the garbage collector). Data for the plot are gathered by both sampling and instrumentation. Linux with gnuplot 4.6 is required.
+
+To create a timeline plot, run V8 as described above, with the option `--log-timer-events` additional to `--prof`:
+{{{
+out/ia32.release/d8 --prof --log-timer-events script.js
+}}}
+
+The output is then passed to a plot script, similar to the tick-processor:
+{{{
+tools/plot-timer-events v8.log
+}}}
+
+This creates `timer-events.png` in the working directory, which can be opened with most image viewers.
+
+= Options =
+Since recording log output comes with a certain performance overhead, the script attempts to correct this using a distortion factor. If not specified, it tries to find out automatically. You can however also specify the distortion factor manually.
+{{{
+tools/plot-timer-events --distortion=4500 v8.log
+}}}
+
+You can also manually specify a certain range for which to create the plot or statistical profile, expressed in milliseconds:
+{{{
+tools/plot-timer-events --distortion=4500 --range=1000,2000 v8.log
+tools/linux-tick-processor --distortion=4500 --range=1000,2000 v8.log
+}}}
+
+= HTML 5 version =
+Both statistical profile and timeline plot are available [http://v8.googlecode.com/svn/branches/bleeding_edge/tools/profviz/profviz.html in the browser]. However, the statistical profile lacks C++ symbol resolution and the Javascript port of gnuplot performs an order of magnitude slower than the native one.

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to