Package org.eclipse.jgit.logging
Class PerformanceLogRecord
java.lang.Object
org.eclipse.jgit.logging.PerformanceLogRecord
Class to register a performance log record.
- Since:
- 5.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
Duration of the recorded event in milliseconds.private String
Name of the recorded event. -
Constructor Summary
ConstructorsConstructorDescriptionPerformanceLogRecord
(String name, long durationMs) Create a new performance log record for an event. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the duration in milliseconds of the recorded event.getName()
Get the name of the recorded event.
-
Field Details
-
name
Name of the recorded event. -
durationMs
private long durationMsDuration of the recorded event in milliseconds.
-
-
Constructor Details
-
PerformanceLogRecord
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
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.
-