public class DefaultProfileLogger extends Object implements ProfileLogger
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultProfileLogger.AccumPerfData |
protected static class |
DefaultProfileLogger.AccumPerfScope |
protected class |
DefaultProfileLogger.TimeEntry |
Modifier and Type | Field and Description |
---|---|
protected int |
bufferSize |
protected static int |
DEFAULT_BUFFER_SIZE |
protected static String |
DEFAULTPROFILE_OPTION |
protected static String |
DEFAULTPROFILE_PROP |
protected int |
indent |
protected long |
launchTime |
protected File |
logFile |
protected String |
logFileName |
protected boolean |
logSynchronously |
protected static String |
OPTION_BUFFERSIZE |
protected static String |
OPTION_FILENAME |
protected static String |
OPTION_LOGSYNCHRONOUSLY |
protected static String |
PROP_BUFFERSIZE |
protected static String |
PROP_FILENAME |
protected static String |
PROP_LOGSYNCHRONOUSLY |
protected Stack<DefaultProfileLogger.AccumPerfScope> |
scopeStack |
protected Map<String,DefaultProfileLogger.AccumPerfData> |
scopeToAccumPerfDataMap |
protected long |
startTime |
protected int |
timeEntriesIndex |
protected StringBuffer |
timelog |
protected DefaultProfileLogger.TimeEntry[] |
timeLogEntries |
protected int |
timePaddingLength |
Constructor and Description |
---|
DefaultProfileLogger() |
protected static final String DEFAULTPROFILE_PROP
protected static final String PROP_FILENAME
protected static final String PROP_LOGSYNCHRONOUSLY
protected static final String PROP_BUFFERSIZE
protected static final String DEFAULTPROFILE_OPTION
protected static final String OPTION_FILENAME
protected static final String OPTION_LOGSYNCHRONOUSLY
protected static final String OPTION_BUFFERSIZE
protected boolean logSynchronously
protected long startTime
protected static final int DEFAULT_BUFFER_SIZE
protected DefaultProfileLogger.TimeEntry[] timeLogEntries
protected int timeEntriesIndex
protected StringBuffer timelog
protected long launchTime
protected int bufferSize
protected String logFileName
protected File logFile
protected int indent
protected int timePaddingLength
protected Stack<DefaultProfileLogger.AccumPerfScope> scopeStack
protected Map<String,DefaultProfileLogger.AccumPerfData> scopeToAccumPerfDataMap
protected void logInitMessages()
protected long getLaunchTime()
protected long getMainStartTime()
public void initProps()
initProps
in interface ProfileLogger
Profile.initProps()
public void logTime(int flag, String id, String msg, String description)
logTime
in interface ProfileLogger
Profile.logTime(int, String, String, String)
public String getProfileLog()
getProfileLog
in interface ProfileLogger
Profile.getProfileLog()
public void accumLogEnter(String scope)
accumLogEnter
in interface ProfileLogger
Profile.accumLogEnter(String)
public void accumLogExit(String scope)
accumLogExit
in interface ProfileLogger
Profile.accumLogExit(String)
protected long getTime()
protected long getTimerFrequency()
protected DefaultProfileLogger.TimeEntry findCompareEntry(int index, String id, int flag)
protected String entryReport(DefaultProfileLogger.TimeEntry entry, DefaultProfileLogger.TimeEntry compareWith)
protected String accumEntryReport(DefaultProfileLogger.AccumPerfData d)
protected void makeLog()
protected String getProfileLogReport()
protected void writeToProfileLogFile(String log)
protected File getProfileLogFile()
protected long getStartTime()
protected long getRelativeTime(long absoluteTime)
protected int getBufferSize()
protected DefaultProfileLogger.TimeEntry timeEntryFactory()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.