-
- All Implemented Interfaces:
-
com.datadog.trace.api.profiling.ObservableType,com.datadog.trace.api.profiling.ProfilingSnapshot
public abstract class RecordingData implements ProfilingSnapshot
Platform-agnostic API for operations required when retrieving data using the ProfilingSystem.
-
-
Constructor Summary
Constructors Constructor Description RecordingData(Instant start, Instant end, ProfilingSnapshot.Kind kind)
-
Method Summary
Modifier and Type Method Description final InstantgetStart()Returns the requested start time for the recording. final InstantgetEnd()Returns the requested end time for the recording. final ProfilingSnapshot.KindgetKind()abstract RecordingInputStreamgetStream()abstract voidrelease()Releases the resources associated with the recording, for example the underlying file. abstract StringgetName()Returns the name of the recording from which the data is originating. final StringtoString()-
-
Constructor Detail
-
RecordingData
RecordingData(Instant start, Instant end, ProfilingSnapshot.Kind kind)
-
-
Method Detail
-
getStart
@NonNull() final Instant getStart()
Returns the requested start time for the recording.
Note that this doesn't necessarily have to match the time for the actual data recorded.
-
getEnd
@NonNull() final Instant getEnd()
Returns the requested end time for the recording.
Note that this doesn't necessarily have to match the time for the actual data recorded.
-
getKind
@NonNull() final ProfilingSnapshot.Kind getKind()
-
getStream
@NonNull() abstract RecordingInputStream getStream()
-
release
abstract void release()
Releases the resources associated with the recording, for example the underlying file.
Forgetting to releasing this when done streaming, will lead to one or more of the following:
- Memory leak
- File leak
Please don't forget to call release when done streaming...
-
getName
@NonNull() abstract String getName()
Returns the name of the recording from which the data is originating.
-
-
-
-