Top Description Fields Constructors Methods
org.eclipse.jgit.logging

public Class PerformanceLogRecord

extends Object
Class Inheritance

Class to register a performance log record.
Since
5.10

Field Summary

Modifier and TypeField and Description
private long
durationMs

Duration of the recorded event in milliseconds.

private String
name

Name of the recorded event.

Constructor Summary

AccessConstructor and Description
public
PerformanceLogRecord(String
name of the event.
name
,
long
duration in milliseconds of the event.
durationMs
)

Create a new performance log record for an event.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

duration in milliseconds of the recorded event.
getDurationMs
()

Get the duration in milliseconds of the recorded event.

public String

Returns:

name of the recorded event.
getName
()

Get the name of the recorded event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

durationMsback to summary
private long durationMs

Duration of the recorded event in milliseconds.

nameback to summary
private String name

Name of the recorded event.

Constructor Detail

PerformanceLogRecordback to summary
public PerformanceLogRecord(String name, long durationMs)

Create a new performance log record for an event.

Parameters
name:String

name of the event.

durationMs:long

duration in milliseconds of the event.

Method Detail

getDurationMsback to summary
public long getDurationMs()

Get the duration in milliseconds of the recorded event.

Returns:long

duration in milliseconds of the recorded event.

getNameback to summary
public String getName()

Get the name of the recorded event.

Returns:String

name of the recorded event.