Alexander Kolbasov
2007-Nov-21 02:23 UTC
[dtrace-discuss] Using DTrace to analyse ON build
This is from a discussion on opensolaris-tools that is somewhat relevant for DTrace community. I wrote a simple D script (http://www.opensolaris.org/os/project/onnv/onnv_build/faster_builds/tools/dtrace/dirtrace.d) that collects data for each dmake process during the Solaris build. After that the data is post-processed by a Perl script (http://www.opensolaris.org/os/project/onnv/onnv_build/faster_builds/tools/dtrace/tree.pl) that produces a full build timeline for building usr/src/uts (I skipped lib and cmd for now). For example, here are sparc: http://www.opensolaris.org/os/project/onnv/onnv_build/faster_builds/Observe/build_76_sun4v_timeline.txt and x86: http://www.opensolaris.org/os/project/onnv/onnv_build/faster_builds/Observe/build_76_i386_timeline.txt results. It shows when each directory was entered during the build, how much time was spent there (inclusive with all subdirectories) and where we came from and what targets were used. - akolb