j_calldist.d revision 1
1N/A * j_calldist.d - measure Java elapsed times for different types of operation. 1N/A * Written for the Java hotspot DTrace provider. 1N/A * $Id: j_calldist.d 59 2007-10-03 08:21:58Z brendan $ 1N/A * This traces activity from all Java processes on the system with hotspot 1N/A * provider support (1.6.0). Method calls are only visible when using the 1N/A * flag "+ExtendedDTraceProbes". eg, java -XX:+ExtendedDTraceProbes classfile 1N/A * USAGE: j_calldist.d [top] # hit Ctrl-C to end 1N/A * The "top" optional argument will truncate the output for each report 1N/A * section to that many lines, with a default of 10. 1N/A * COPYRIGHT: Copyright (c) 2007 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * 09-Sep-2007 Brendan Gregg Created this. 1N/A#
define TOP 10 /* default output truncation */ 1N/A printf(
"\nTop %d exclusive method elapsed times (us),\n",
top);
1N/A printf(
"\nTop %d inclusive method elapsed times (us),\n",
top);