aboutsummaryrefslogtreecommitdiff
path: root/Examples/j_package_example.txt
blob: 0d4da29d9e907f719d8c482dcd0b2779ac6e696c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
The following are examples of j_package.d.

This script will show you the number of times a class is loaded from
particular packages.  

Here you can see it running when Code/Java/Func_abc runs.

# j_package.d
Tracing... Hit Ctrl-C to end.

      PID    LOADS  PACKAGE
   311500        1  .
   311500        1  java/lang/annotation
   311500        1  java/nio/charset/spi
   311500        1  java/security/cert
   311500        1  sun/net/www/protocol/jar
   311500        1  sun/nio
   311500        1  sun/reflect/misc
   311500        1  sun/security/action
   311500        1  sun/security/provider
   311500        1  sun/security/util
   311500        1  sun/util
   311500        2  sun/net/www/protocol/file
   311500        3  java/util/concurrent/atomic
   311500        3  sun/net/www
   311500        4  java/util/concurrent
   311500        4  java/util/jar
   311500        7  java/nio
   311500        7  java/util/concurrent/locks
   311500        7  java/util/zip
   311500        8  java/nio/charset
   311500       10  java/net
   311500       12  java/lang/ref
   311500       12  java/lang/reflect
   311500       13  sun/nio/cs
   311500       18  sun/reflect
   311500       19  java/security
   311500       34  sun/misc
   311500       38  java/io
   311500       46  java/util
   311500       69  java/lang

You can see that 69 classes from the java/lang package were loaded during the
time this script was running.