The Panini Programming Guide

Using Panini Profiler

You could also profile a Panini program to compute runtime and memory consumption of various parts of that program. This can be done from command-line using the 'panp' (for Panini profiler) command available in the Panini distribution.

An example usage of 'panp' is shown below. The following assumes that you have downloaded and installed the Panini compiler distribution.

[examples] $ ../bin/panc HelloWorld.java
[examples] $ ../bin/panp HelloWorld
[examples] $ ../bin/panc HelloWorld.java
[examples] $ ../bin/panp HelloWorld
profiler: on
remote: off
port: 15599
thread-depth: compact
thread.compact.threshold.ms: 1
max-method-count: compact
method.compact.threshold.ms: 1
file: profile.txt
track.object.alloc: on
output: text
debug: off
profiler-class: com.mentorgen.tools.profile.runtime.Profile
output-method-signatures: no
clock-resolution: ms
output-summary-only: no
exclude:null
Accept ClassLoader: sun.misc.Launcher$AppClassLoader
ClassLoaderFilter.1:
com.mentorgen.tools.profile.instrument.clfilter.StandardClassLoaderFilter
Java Interactive Profiler: starting
------------------
Hello World!
Controller -- shuttingdown
[examples] $ cat profile.txt

The file profile.txt contains the runtime profile generated by the profiler.

Configuring Profiler

You could change the settings of Panini profiler by modifying the file 'PANC_HOME/lib/profile.properties'. Here, 'PANC_HOME' is the directory in which your Panini distribution is installed.

Page last modified on $Date: 2013/08/03 14:04:23 $