Package 

Class RecordingData

  • 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.

    • 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.

      • 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.