public final class TimeTracker
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static void |
finishThread() |
Finishes tracking a thread.
|
static void |
initThread() |
Initialize a thread, starting to track it's own time.
|
static void |
startGlobalTracking() |
Starts global tracking.
|
static TimedOperation |
startOperation(TimedOperationCategory category) |
Starts tracking an operation.
|
static TimedOperation |
startOperation(TimedOperationCategory category,
java.lang.String label) |
Starts tracking an operation.
|
static TimingReport |
stopGlobalTracking() |
Stops global tracking.
|
public static void startGlobalTracking()
public static TimingReport stopGlobalTracking()
public static void initThread()
public static void finishThread()
public static TimedOperation startOperation(TimedOperationCategory category)
category
- The category under which to track the operation.public static TimedOperation startOperation(TimedOperationCategory category, java.lang.String label)
category
- The category under which to track the operation.label
- A label to be added to the category. Allows to differentiate measures within a single category.Copyright © 2002–2018 PMD. All rights reserved.