We first show how to control the custom debugger from within a
Java thread. We will periodically poke an interpreter so that it
does some port sampling via a custom debugger hook for us.
- Thread Interaction: We
give an overview of the components and the execution flow that
we will use in the solution. There will be two active
- Relative Statistics: We
will use a customer debugger hook that will count the number of
port events. There will be a simple statistic that will show the
relative counts. More...
- Headless Thread: The
component will periodically poke the interpreter. It will
alter-nately let run the interpreter in debug mode and trace
- Example Uses: The
sampling thread can be invoked from within the development
environment. Sampling gives approximate results in less time. More...