/*
* j_cputime.d - measure Java on-CPU times for different types of operation.
* Written for the Java hotspot DTrace provider.
*
* $Id: j_cputime.d 59 2007-10-03 08:21:58Z brendan $
*
* This traces activity from all Java processes on the system with hotspot
* provider support (1.6.0). Method calls are only visible when using the
* flag "+ExtendedDTraceProbes". eg, java -XX:+ExtendedDTraceProbes classfile
*
* USAGE: j_cputime.d [top] # hit Ctrl-C to end
*
* The "top" optional argument will truncate the output for each report
* section to that many lines, with a default of 10.
*
* FIELDS:
* PID Process ID
* NAME Name of call
* TOTAL Total on-CPU time for calls (us)
*
* COPYRIGHT: Copyright (c) 2007 Brendan Gregg.
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* See the License for the specific language governing permissions
* and limitations under the License.
*
* CDDL HEADER END
*
* 09-Sep-2007 Brendan Gregg Created this.
*/
#define B_FALSE 0
#pragma D option defaultargs
{
printf("Tracing... Hit Ctrl-C to end.\n");
}
{
}
{
}
{
}
{
}
{
}