Microsoft SDK for Java

Collecting Sampling Data

The profiler interfaces support the ability to collect sampling information as a way to profile a Java application or applet. To collect sample data, a profiler must arrange a way to call SampleThreadLocation at periodic intervals.

A profiler is free to use a variety of methods to make periodic calls to SampleThreadLocation. The profiler can call this method in a loop followed by Win32 Sleep function calls. The profiler can set a short timer and call this method when the timer expires. The profiler can use other schemes (waiting for other events) to trigger when to call this method.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.