Comment #2 on issue 2325 by [email protected]: Feature request - DTrace
probes for Developers(first!) & Sys Admins :)
http://code.google.com/p/v8/issues/detail?id=2325
Yes, Chrome is the leader in performance tools in the browser. It is my
preferred browser for development. Using Dtrace can offer a deeper level of
inspection into a developer's application behavior in the v8 runtime, with
other pieces of software (Java Hotspot, MySQL, Apache) and/or in the
operating system (disk i/o, filesystem, network, etc).
While it is easy to pick up DTrace concepts and "D" scripting language,
I've quickly noticed a hurdle of implementing DTrace is a developer's
knowledge of each specific application, library or kernel module. Those
best suited for adding the probes are those most familiar with each app or
module behavior as they know where best to place the probes. I would love
to contribute but it may be awhile before I am able to do so. In the mean
time, please take this as my humble suggestion inorder to open up a
discussion.
I'd like to see:
1. DTrace probes added to v8 (and other parts of chrome)
2. The ability in Chrome developer tools to access DTrace
- Webkit could add probes too.
3. Users are able to create chrome extensions for realtime visualizations
of DTrace data
- DTrace currently does require root access to use, which may be a
problem
- I'm very impressed with the visualizations Joyent (SmartOS) and Apple
XCode Instruments have been able to achieve using DTrace (and can be used
safely on production systems!!)
Visualization examples:
http://dtrace.org/blogs/brendan/2012/03/26/subsecond-offset-heat-maps/
http://dtrace.org/blogs/brendan/2012/02/12/visualizing-process-execution/
http://blog.nodejs.org/2012/04/25/profiling-node-js/
Other DTrace Benefits:
- Enhances Debugging
- Joyent has been able to find performance issues and bugs in numerous
applications that they do NOT develop internally
- can reduce time finding performance issues in any level of the OS.
- http://dtrace.org/blogs/brendan/2012/08/09/10-performance-wins/
- Inspect other parts of your software stack
- Java, Ruby and other Dynamic languages (running locally)
- MySQL,Apache
- Developer Education
- learn kenral module behavior
- patterns in latency
- teach about v8 behavior using D scripts and visualizations
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev