Class PerformanceLogContext

java.lang.Object
org.eclipse.jgit.logging.PerformanceLogContext

public class PerformanceLogContext extends Object
Singleton that collects performance logs.
Since:
5.10
  • Field Details

  • Constructor Details

    • PerformanceLogContext

      private PerformanceLogContext()
  • Method Details

    • 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.