Microsoft SDK for Java

Profiler Samples

The Java profiler interfaces assist in the analysis of Java code for speed, memory use, redundancy, and other performance factors. The profiler interfaces are Component Object Model (COM) objects and interfaces implemented by the Microsoft virtual machine (Microsoft VM). The profiler interfaces support any number of concurrently operating event monitors, thus profiling both execution time and memory usage. These interfaces can also profile components that mix Java classes with Microsoft® Win32® native code. For more information, see Profiler Interfaces Overview.

The following profiler samples are provided.

Sample Description
Heap Monitor Location: \Samples\profiler\heapmon

Technologies: Profiler

Demonstrates:

  • Using the heap monitor interfaces to create tools for finding memory leaks and inspect application state.
JView Profiler Location: \Samples\Profiler\JviewPrf

Technologies: Profiler

Demonstrates:

  • Defining a simple implementation of several Microsoft VM event monitor interfaces. This sample uses two new configurations of the jview tool, pjview and pwjview, which run and profile applications and applets.
Sample Monitor Location: \Samples\Profiler\SampMon

Technologies: Profiler, native code

Demonstrates:

  • Defining a simple implementation of several Microsoft VM event monitor interfaces.

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