Skip to content

Commit 8ad8925

Browse files
committed
added comment
1 parent f7d8315 commit 8ad8925

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/AndroidTransactionProfiler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ final class AndroidTransactionProfiler implements ITransactionProfiler {
4040
private final @NotNull AtomicBoolean isRunning = new AtomicBoolean(false);
4141
private final @NotNull SentryFrameMetricsCollector frameMetricsCollector;
4242
private @Nullable ProfilingTransactionData currentProfilingTransactionData;
43+
44+
/**
45+
* The underlying profiler instance. It is thread safe to call it after checking if it's not null,
46+
* because we never nullify it after instantiation.
47+
*/
4348
private volatile @Nullable AndroidProfiler profiler = null;
49+
4450
private long profileStartNanos;
4551
private long profileStartCpuMillis;
4652
private @NotNull Date profileStartTimestamp;

0 commit comments

Comments
 (0)