ProfileInfo parses Progress Profiler files and calculates execution statistics. It also uses ProgressParser to parse source code and accounts data to each programs statements.
The box below shows the Java code used to process Profiler files:
import net.cordova.justus.profiler.*; import java.io.*; public class MyTest implements CommandListener { public static void main(String args[]) { File profFile = new File(args[0]); // Profiler's result file File sourceDir = new File(args[1]); // Profiler's output source code directory (dbg_* files) HashMap<Integer, ExecutionProgram> profileInfo; profileInfo = ProfileLoader.loadProfile(profFile, sourceDir); ArrayList<ExecutionProgram> programs = new ArrayList<ExecutionProgram>(profileInfo.values()); } } |