xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/j_thread_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1*c29d5175SchristosFollowing we see examples of the results of running j_thread.d.
2*c29d5175Schristos
3*c29d5175SchristosHere it is running while Code/Java/Func_abc is executing.
4*c29d5175Schristos
5*c29d5175Schristos# j_thread.d
6*c29d5175SchristosTIME                     PID/TID   -- THREAD
7*c29d5175Schristos2007 Sep 24 04:01:34  311512/5     => Finalizer
8*c29d5175Schristos2007 Sep 24 04:01:34  311512/4     => Reference Handler
9*c29d5175Schristos2007 Sep 24 04:01:34  311512/7     => CompilerThread0
10*c29d5175Schristos2007 Sep 24 04:01:34  311512/6     => Signal Dispatcher
11*c29d5175Schristos2007 Sep 24 04:01:34  311512/8     => CompilerThread1
12*c29d5175Schristos2007 Sep 24 04:01:34  311512/9     => Low Memory Detector
13*c29d5175Schristos^C
14*c29d5175Schristos
15*c29d5175SchristosThe fields of the output are, in order, Event time, Process ID/Thread ID,
16*c29d5175Schristosentry (=>) or exit (<=) and Thread name.
17*c29d5175Schristos
18*c29d5175SchristosIn this example we see six different threads starting, but we do not see
19*c29d5175Schristosthread exit events as the JVM exited when the program stopped.
20*c29d5175Schristos
21