org.eclipse.osgi.internal.profile
Class DefaultProfileLogger
java.lang.Object
org.eclipse.osgi.internal.profile.DefaultProfileLogger
- All Implemented Interfaces:
- ProfileLogger
public class DefaultProfileLogger
- extends Object
- implements ProfileLogger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULTPROFILE_PROP
protected static final String DEFAULTPROFILE_PROP
- See Also:
- Constant Field Values
PROP_FILENAME
protected static final String PROP_FILENAME
- See Also:
- Constant Field Values
PROP_LOGSYNCHRONOUSLY
protected static final String PROP_LOGSYNCHRONOUSLY
- See Also:
- Constant Field Values
PROP_BUFFERSIZE
protected static final String PROP_BUFFERSIZE
- See Also:
- Constant Field Values
DEFAULTPROFILE_OPTION
protected static final String DEFAULTPROFILE_OPTION
- See Also:
- Constant Field Values
OPTION_FILENAME
protected static final String OPTION_FILENAME
- See Also:
- Constant Field Values
OPTION_LOGSYNCHRONOUSLY
protected static final String OPTION_LOGSYNCHRONOUSLY
- See Also:
- Constant Field Values
OPTION_BUFFERSIZE
protected static final String OPTION_BUFFERSIZE
- See Also:
- Constant Field Values
logSynchronously
protected boolean logSynchronously
startTime
protected long startTime
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
timeLogEntries
protected DefaultProfileLogger.TimeEntry[] timeLogEntries
timeEntriesIndex
protected int timeEntriesIndex
timelog
protected StringBuffer timelog
launchTime
protected long launchTime
bufferSize
protected int bufferSize
logFileName
protected String logFileName
logFile
protected File logFile
indent
protected int indent
timePaddingLength
protected int timePaddingLength
scopeStack
protected Stack<DefaultProfileLogger.AccumPerfScope> scopeStack
scopeToAccumPerfDataMap
protected Map<String,DefaultProfileLogger.AccumPerfData> scopeToAccumPerfDataMap
DefaultProfileLogger
public DefaultProfileLogger()
logInitMessages
protected void logInitMessages()
getLaunchTime
protected long getLaunchTime()
getMainStartTime
protected long getMainStartTime()
initProps
public void initProps()
- Specified by:
initProps in interface ProfileLogger
- See Also:
Profile.initProps()
logTime
public void logTime(int flag,
String id,
String msg,
String description)
- Specified by:
logTime in interface ProfileLogger
- See Also:
Profile.logTime(int, String, String, String)
getProfileLog
public String getProfileLog()
- Specified by:
getProfileLog in interface ProfileLogger
- See Also:
Profile.getProfileLog()
accumLogEnter
public void accumLogEnter(String scope)
- Specified by:
accumLogEnter in interface ProfileLogger
- See Also:
Profile.accumLogEnter(String)
accumLogExit
public void accumLogExit(String scope)
- Specified by:
accumLogExit in interface ProfileLogger
- See Also:
Profile.accumLogExit(String)
getTime
protected long getTime()
getTimerFrequency
protected long getTimerFrequency()
findCompareEntry
protected DefaultProfileLogger.TimeEntry findCompareEntry(int index,
String id,
int flag)
entryReport
protected String entryReport(DefaultProfileLogger.TimeEntry entry,
DefaultProfileLogger.TimeEntry compareWith)
accumEntryReport
protected String accumEntryReport(DefaultProfileLogger.AccumPerfData d)
makeLog
protected void makeLog()
pad
protected String pad(String str,
int size)
getProfileLogReport
protected String getProfileLogReport()
writeToProfileLogFile
protected void writeToProfileLogFile(String log)
getProfileLogFile
protected File getProfileLogFile()
getStartTime
protected long getStartTime()
getRelativeTime
protected long getRelativeTime(long absoluteTime)
getBufferSize
protected int getBufferSize()
timeEntryFactory
protected DefaultProfileLogger.TimeEntry timeEntryFactory()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.