Profile with Eclipse - prasadtalasila/BITS-Darshini GitHub Wiki

Profile with Eclipse

TO INTEGRATE ECLIPSE WITH JPROFILER

Jprofiler can be integrated with Eclipse so that profiling can be done from within eclipse. Please visit the following link to integrate Jprofiler with eclipse.

TO RUN USING ECLIPSE AS A RUNNING JVM

First, run the BITS-Darshini project onto Eclipse, by choosing a project from file.

Second, open JProfiler and select 'attach to a running JVM' option. Select the running project. img/ProfilerStart.png

img/StartCenter.png

Select the instrumentation option for detailed information. img/SessionStartup.png

Modify the JVM exit action according to your need and click OK. img/SessionStartup1.png

Record the data for whatever option you want to install, and display the required results.

USING HEAP WALKER AND CPU VIEWS

After integrating eclipse with Jprofiler you can start the profiling session from within the eclipse. You can change the filter from Filter settings and also choose JVM exit action accordingly from the pop-up window at the start of the session to filter the profiled classes, making it easier to interpret results for our classes. **For Heap Walker select Keep the VM alive from JVM exit action ** img/heap1.png

Select Heap Walker option and click on the camera button and choose default setting by clicking on OK. img/heap2.png

Select the object from the list to create a new object set for making analyzing objects easier. img/heap3.png

You can look at various different views for your object set. img/heap4.png


Click on CPU views option to do memory and time analysis of your application.

CALL TREE Shows a cumulated top-down tree of all recorded call sequences in the JVM img/cpu1.png

HOT SPOTS Shows the list of the most time-consuming methods. The tree of backtraces can be shown for each hot spot. img/cpu2.png

CALL GRAPHS Shows a graph of call sequences starting from selected methods, classes, packages or Java EE components. First, select the type of threads that you want the graph for. img/cpu3.png

Then, you need to select initial nodes for the call graph. Your call graph is Ready! select the small + icons in the side of the node to further expand graph in either direction. img/cpu4.png