Package org.eclipse.jgit.logging
Class PerformanceLogContext
- java.lang.Object
-
- org.eclipse.jgit.logging.PerformanceLogContext
-
public class PerformanceLogContext extends Object
Singleton that collects performance logs.- Since:
- 5.10
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEvent(PerformanceLogRecord record)
Adds a performance log record to the current list of events.void
cleanEvents()
Removes all of the existing records from the current list of events.List<PerformanceLogRecord>
getEventRecords()
Get the unmodifiable list of events as performance records.static PerformanceLogContext
getInstance()
Get the instance of the context.
-
-
-
Method Detail
-
getInstance
public static PerformanceLogContext getInstance()
Get the instance of the context.- Returns:
- instance of performance log context.
-
getEventRecords
public List<PerformanceLogRecord> getEventRecords()
Get the unmodifiable list of events as performance records.- Returns:
- unmodifiable list of events as performance logs.
-
addEvent
public void addEvent(PerformanceLogRecord record)
Adds a performance log record to the current list of events.- Parameters:
record
- performance log record that is going to be added.
-
cleanEvents
public void cleanEvents()
Removes all of the existing records from the current list of events.
-
-