net.sf.log4jdbc
Class PostLogProfilerProcessor

java.lang.Object
  extended by net.sf.log4jdbc.PostLogProfilerProcessor

public class PostLogProfilerProcessor
extends java.lang.Object

Post processes an existing sqltiming log, and creates a profiling report from it. Name of log file is passed in on the command line as the only argument. Assumptions: 1. Each sql statement in the log is separated by a blank line. 2. Each sql statement is terminated with the timing string "{executed in N msec}" where N is the number of milliseconds that the sql executed in.


Constructor Summary
PostLogProfilerProcessor(java.lang.String filename, java.io.PrintStream out)
          Process given filename, and produce sql profiling report to given PrintStream.
 
Method Summary
static void main(java.lang.String[] args)
          Post Process log4jdbc sqltiming log data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostLogProfilerProcessor

public PostLogProfilerProcessor(java.lang.String filename,
                                java.io.PrintStream out)
                         throws java.lang.Exception
Process given filename, and produce sql profiling report to given PrintStream.

Parameters:
filename - sqltiming log to process.
out - PrintStream to write profiling report to.
Throws:
java.lang.Exception - if reading error occurs.
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Post Process log4jdbc sqltiming log data.

Parameters:
args - command line arguments. Expects one argument, the name of the file to post process.
Throws:
java.lang.Exception - if something goes wrong during processing.