Class PerformanceLogRecord

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

public class PerformanceLogRecord extends Object
Class to register a performance log record.
Since:
5.10
  • Field Details

    • name

      private String name
      Name of the recorded event.
    • durationMs

      private long durationMs
      Duration of the recorded event in milliseconds.
  • Constructor Details

    • PerformanceLogRecord

      public PerformanceLogRecord(String name, long durationMs)
      Create a new performance log record for an event.
      Parameters:
      name - name of the event.
      durationMs - duration in milliseconds of the event.
  • Method Details

    • getName

      public String getName()
      Get the name of the recorded event.
      Returns:
      name of the recorded event.
    • getDurationMs

      public long getDurationMs()
      Get the duration in milliseconds of the recorded event.
      Returns:
      duration in milliseconds of the recorded event.