Package io.sentry
Class NoOpCompositePerformanceCollector
java.lang.Object
io.sentry.NoOpCompositePerformanceCollector
- All Implemented Interfaces:
CompositePerformanceCollector
public final class NoOpCompositePerformanceCollector
extends Object
implements CompositePerformanceCollector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Cancel the collector and stops it.void
onSpanFinished
(@NotNull ISpan span) Called whenever a span (including the top level transaction) is finished.void
onSpanStarted
(@NotNull ISpan span) Called whenever a new span (including the top level transaction) is started.void
start
(@NotNull ITransaction transaction) Starts collecting performance data and span related data (e.g.void
Starts collecting performance data without span related data (e.g.@Nullable List<PerformanceCollectionData>
stop
(@NotNull ITransaction transaction) Stops collecting performance data and span related data (e.g.@Nullable List<PerformanceCollectionData>
Stops collecting performance data.
-
Method Details
-
getInstance
-
start
Description copied from interface:CompositePerformanceCollector
Starts collecting performance data and span related data (e.g. slow/frozen frames).- Specified by:
start
in interfaceCompositePerformanceCollector
-
start
Description copied from interface:CompositePerformanceCollector
Starts collecting performance data without span related data (e.g. slow/frozen frames).- Specified by:
start
in interfaceCompositePerformanceCollector
-
onSpanStarted
Description copied from interface:CompositePerformanceCollector
Called whenever a new span (including the top level transaction) is started.- Specified by:
onSpanStarted
in interfaceCompositePerformanceCollector
- Parameters:
span
- the span that was started
-
onSpanFinished
Description copied from interface:CompositePerformanceCollector
Called whenever a span (including the top level transaction) is finished.- Specified by:
onSpanFinished
in interfaceCompositePerformanceCollector
- Parameters:
span
- the span that was finished
-
stop
@Nullable public @Nullable List<PerformanceCollectionData> stop(@NotNull @NotNull ITransaction transaction) Description copied from interface:CompositePerformanceCollector
Stops collecting performance data and span related data (e.g. slow/frozen frames).- Specified by:
stop
in interfaceCompositePerformanceCollector
-
stop
Description copied from interface:CompositePerformanceCollector
Stops collecting performance data.- Specified by:
stop
in interfaceCompositePerformanceCollector
-
close
public void close()Description copied from interface:CompositePerformanceCollector
Cancel the collector and stops it. Used on SDK close.- Specified by:
close
in interfaceCompositePerformanceCollector
-