| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | eventRecords
List that stores events as performance logs. |
| private static final PerformanceLogContext | INSTANCE
Singleton instance that stores the statistics. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEvent(PerformanceLogRecord
performance log record that is going to be added. record)Adds a performance log record to the current list of events. |
| public void | |
| public List | Returns: unmodifiable list of events as performance logs.Get the unmodifiable list of events as performance records. |
| public static PerformanceLogContext |
| eventRecords | back to summary |
|---|---|
| private static final ThreadLocal<List<PerformanceLogRecord>> eventRecords List that stores events as performance logs. | |
| INSTANCE | back to summary |
|---|---|
| private static final PerformanceLogContext INSTANCE Singleton instance that stores the statistics. | |
| PerformanceLogContext | back to summary |
|---|---|
| private PerformanceLogContext() | |
| addEvent | back to summary |
|---|---|
| public void addEvent(PerformanceLogRecord record) Adds a performance log record to the current list of events.
| |
| cleanEvents | back to summary |
|---|---|
| public void cleanEvents() Removes all of the existing records from the current list of events. | |
| getEventRecords | back to summary |
|---|---|
| public List Get the unmodifiable list of events as performance records.
| |
| getInstance | back to summary |
|---|---|
| public static PerformanceLogContext getInstance() Get the instance of the context.
| |