]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/j_package_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / j_package_example.txt
1 The following are examples of j_package.d.
2
3 This script will show you the number of times a class is loaded from
4 particular packages.  
5
6 Here you can see it running when Code/Java/Func_abc runs.
7
8 # j_package.d
9 Tracing... Hit Ctrl-C to end.
10
11       PID    LOADS  PACKAGE
12    311500        1  .
13    311500        1  java/lang/annotation
14    311500        1  java/nio/charset/spi
15    311500        1  java/security/cert
16    311500        1  sun/net/www/protocol/jar
17    311500        1  sun/nio
18    311500        1  sun/reflect/misc
19    311500        1  sun/security/action
20    311500        1  sun/security/provider
21    311500        1  sun/security/util
22    311500        1  sun/util
23    311500        2  sun/net/www/protocol/file
24    311500        3  java/util/concurrent/atomic
25    311500        3  sun/net/www
26    311500        4  java/util/concurrent
27    311500        4  java/util/jar
28    311500        7  java/nio
29    311500        7  java/util/concurrent/locks
30    311500        7  java/util/zip
31    311500        8  java/nio/charset
32    311500       10  java/net
33    311500       12  java/lang/ref
34    311500       12  java/lang/reflect
35    311500       13  sun/nio/cs
36    311500       18  sun/reflect
37    311500       19  java/security
38    311500       34  sun/misc
39    311500       38  java/io
40    311500       46  java/util
41    311500       69  java/lang
42
43 You can see that 69 classes from the java/lang package were loaded during the
44 time this script was running.