public class LogProfiler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LogProfiler.CountComparator
The OccurrenceCount comparator.
|
class |
LogProfiler.DeadLockInfo
Class to store the the deadlockinfo
|
class |
LogProfiler.DelayComparator
The DelayLine comparator.
|
class |
LogProfiler.DelayInfo
Class to store the the delayinfo
|
class |
LogProfiler.DelayLine
Class to store the line numbers with there delay time.
|
class |
LogProfiler.InfoComparator
The OccurrenceInfo comparator.
|
class |
LogProfiler.LogProfException |
class |
LogProfiler.OccurrenceCount
The class to store the counting of the occurrence.
|
class |
LogProfiler.OccurrenceInfo
The class to store the information about methods: occurence count , total
time , minimum time, average time, maximum time, line number of maximum
time
|
class |
LogProfiler.OccurrenceTime
The class to store the time and lineno of an occurrence(method).
|
class |
LogProfiler.UsedMemoryInfo
The class to store the information about methods: occurence count , total
time , minimum time, average time, maximum time, line number of maximum
time
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
analyzeReady |
protected long |
countedMethodCalls |
protected long |
countedMethodCount |
protected LogProfiler.DeadLockInfo[] |
deadLockInfo |
protected com.highqsoft.logprofiler.LogProfiler.DelayCount[] |
delayCountList |
protected LogProfiler.DelayInfo[] |
delayInfoList |
protected LogProfiler.DelayLine[] |
delayLineList |
protected java.lang.String |
detailMethod |
protected long |
diffExceptionCount |
protected long |
elapsedTime |
protected java.util.Date |
endTime |
protected LogProfiler.OccurrenceCount[] |
exceptionCount |
protected java.lang.String |
filename |
protected long |
filePos |
protected long |
fileSize |
protected LogProfiler.UsedMemoryInfo[] |
ieMem |
protected long |
ieMemCount |
protected LogProfiler.UsedMemoryInfo[] |
lcMem |
protected long |
lcMemCount |
protected static int |
LEN_L |
protected static int |
LEN_M |
protected static int |
LEN_S |
protected static int |
LEN_W |
protected long |
lineNo |
protected int |
maxMethodNameLen |
protected long |
measuredMethodCalls |
protected long |
measuredMethodCount |
protected long |
measuredMethodTotTime |
protected LogProfiler.OccurrenceCount[] |
methodCount |
protected LogProfiler.OccurrenceInfo[] |
methodInfo |
protected LogProfiler.OccurrenceTime[] |
methodTime |
protected LogProfiler.UsedMemoryInfo[] |
mfMem |
protected long |
mfMemCount |
protected java.lang.String |
outFilename |
protected static java.text.SimpleDateFormat |
PARSERFORMAT |
protected java.util.Date |
startTime |
protected int |
threadRegisterDelayCount |
protected long |
threadRegisterDelayCountPercentage |
protected int |
timeNullCount |
protected long |
totDeadLockCount |
protected long |
totExceptionCount |
protected LogProfiler.UsedMemoryInfo[] |
totMem |
protected long |
totMemCount |
protected java.lang.StringBuffer |
warnBuf |
protected int |
warnflag |
Constructor and Description |
---|
LogProfiler(java.lang.String filename)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
analyzeFile()
Analyze the file.
|
boolean |
analyzeReady()
Get the state of the analyze process.
|
void |
collectFurtherInfo()
Collect further Information that can be used either by output routines or
passed to log profile viewer
|
long |
getCountedMethodCalls() |
long |
getCountedMethodCount() |
LogProfiler.DeadLockInfo[] |
getDeadLockInfo() |
LogProfiler.DelayInfo[] |
getDelayInfo() |
LogProfiler.DelayLine[] |
getDelayLine() |
long |
getDiffExceptionCount() |
long |
getElapsedTime() |
java.util.Date |
getEndTime() |
LogProfiler.OccurrenceCount[] |
getExceptionCount() |
long |
getFilePos()
Get the size of the file.
|
long |
getFileSize()
Get the size of the file.
|
long |
getIeMemCount() |
LogProfiler.UsedMemoryInfo[] |
getIeMemInfo() |
long |
getLcMemCount() |
LogProfiler.UsedMemoryInfo[] |
getLcMemInfo() |
long |
getLineNo() |
long |
getMeasuredMethodCalls() |
long |
getMeasuredMethodCount() |
long |
getMeasuredMethodTotTime() |
LogProfiler.OccurrenceInfo[] |
getMethodInfo() |
LogProfiler.OccurrenceTime[] |
getMethodTime() |
long |
getMfMemCount() |
LogProfiler.UsedMemoryInfo[] |
getMfMemInfo() |
java.util.Date |
getStartTime() |
long |
getThreadRegisterDelayCount() |
long |
getThreadRegisterDelayCountPercentage() |
long |
getTotDeadLockCount() |
long |
getTotExceptionCount() |
long |
getTotMemCount() |
LogProfiler.UsedMemoryInfo[] |
getTotMemInfo() |
java.lang.StringBuffer |
getWarnBuf() |
static void |
main(java.lang.String[] args)
The main occurrence of the log profiler.
|
void |
setDetailMethod(java.lang.String detailMethod)
Set the name of the detail method.
|
void |
setOutputFilename(java.lang.String outFilename)
Set the name of the output file.
|
void |
showDetailMethod()
Print the output of the detailMethod
|
void |
showHistogramm()
Print the histogramm to the standard output.
|
void |
showMethodTimes()
Print the output to the standard output.
|
void |
showResults()
Print the output to the standard output.
|
void |
showUsedMemory() |
void |
sortResults()
Sort the results of the analyze.
|
long |
toLong(java.util.Date time)
Get the long represenation of the date
|
java.lang.String |
toString(java.util.Date time)
Get the string represenation of the date
|
protected java.lang.String filename
protected LogProfiler.OccurrenceCount[] exceptionCount
protected LogProfiler.OccurrenceCount[] methodCount
protected LogProfiler.OccurrenceTime[] methodTime
protected LogProfiler.DelayLine[] delayLineList
protected com.highqsoft.logprofiler.LogProfiler.DelayCount[] delayCountList
protected LogProfiler.DelayInfo[] delayInfoList
protected LogProfiler.OccurrenceInfo[] methodInfo
protected LogProfiler.DeadLockInfo[] deadLockInfo
protected LogProfiler.UsedMemoryInfo[] lcMem
protected LogProfiler.UsedMemoryInfo[] ieMem
protected LogProfiler.UsedMemoryInfo[] mfMem
protected LogProfiler.UsedMemoryInfo[] totMem
protected int threadRegisterDelayCount
protected java.lang.String outFilename
protected java.util.Date startTime
protected java.util.Date endTime
protected int maxMethodNameLen
protected int timeNullCount
protected long fileSize
protected long filePos
protected long lineNo
protected boolean analyzeReady
protected java.lang.StringBuffer warnBuf
protected int warnflag
protected long countedMethodCount
protected long countedMethodCalls
protected long measuredMethodCount
protected long measuredMethodCalls
protected long measuredMethodTotTime
protected long threadRegisterDelayCountPercentage
protected long elapsedTime
protected long diffExceptionCount
protected long totExceptionCount
protected long totDeadLockCount
protected long lcMemCount
protected long ieMemCount
protected long mfMemCount
protected long totMemCount
protected java.lang.String detailMethod
protected static final java.text.SimpleDateFormat PARSERFORMAT
protected static final int LEN_L
protected static final int LEN_W
protected static final int LEN_S
protected static final int LEN_M
public LogProfiler(java.lang.String filename)
filename
- the filename.public LogProfiler.OccurrenceInfo[] getMethodInfo()
public LogProfiler.OccurrenceTime[] getMethodTime()
public LogProfiler.DelayLine[] getDelayLine()
public LogProfiler.DelayInfo[] getDelayInfo()
public LogProfiler.DeadLockInfo[] getDeadLockInfo()
public LogProfiler.UsedMemoryInfo[] getTotMemInfo()
public LogProfiler.UsedMemoryInfo[] getLcMemInfo()
public LogProfiler.UsedMemoryInfo[] getIeMemInfo()
public LogProfiler.UsedMemoryInfo[] getMfMemInfo()
public LogProfiler.OccurrenceCount[] getExceptionCount()
public long getCountedMethodCount()
public long getCountedMethodCalls()
public long getMeasuredMethodCount()
public long getMeasuredMethodCalls()
public long getMeasuredMethodTotTime()
public long getThreadRegisterDelayCount()
public long getThreadRegisterDelayCountPercentage()
public long getDiffExceptionCount()
public long getTotExceptionCount()
public long getTotDeadLockCount()
public long getLcMemCount()
public long getIeMemCount()
public long getMfMemCount()
public long getTotMemCount()
public java.util.Date getStartTime()
public java.util.Date getEndTime()
public long getElapsedTime()
public java.lang.StringBuffer getWarnBuf()
public void setDetailMethod(java.lang.String detailMethod)
detailMethod
- public void setOutputFilename(java.lang.String outFilename)
outFilename
- public long getFileSize()
public long getFilePos()
public long getLineNo()
public boolean analyzeReady()
public void analyzeFile() throws LogProfiler.LogProfException
LogProfiler.LogProfException
public void sortResults()
public long toLong(java.util.Date time)
time
- the datepublic java.lang.String toString(java.util.Date time)
time
- the datepublic void collectFurtherInfo()
public void showResults()
public void showMethodTimes()
public void showDetailMethod()
public void showUsedMemory()
public void showHistogramm()
public static void main(java.lang.String[] args)
args
- the first argument is the name of the log file. args[0] is the
filename of the log file. args[1] is the filename of the output
file.