ApplicationStartup implementation for the Java Flight Recorder.
This variant records StartupStep as Flight Recorder events. Because
such events only support base types, the
org. are serialized as a
single String attribute.
Once this is configured on the application context, you can record data by
launching the application with recording enabled:
java -XX:StartFlightRecording:filename=recording.jfr,duration=10s -jar app.jar.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private final Deque |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public StartupStep | start(String
the step name name)Implements org. |
| currentSequenceId | back to summary |
|---|---|
| private final AtomicLong currentSequenceId | |
| currentSteps | back to summary |
|---|---|
| private final Deque<Long> currentSteps | |
| FlightRecorderApplicationStartup | back to summary |
|---|---|
| public FlightRecorderApplicationStartup() | |
| start | back to summary |
|---|---|
| public StartupStep start(String name) Implements org. Doc from org. Create a new step and marks its beginning. A step name describes the current action or phase. This technical name should be "." namespaced and can be reused to describe other instances of the same step during application startup. | |