Skip to content

Commit dcee449

Browse files
43jayclaude
andcommitted
chore: Run spotlessApply and apiDump
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 443cc45 commit dcee449

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

sentry-android-core/api/sentry-android-core.api

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public final class io/sentry/android/core/ActivityLifecycleIntegration : android
4343
public class io/sentry/android/core/AndroidContinuousProfiler : io/sentry/IContinuousProfiler, io/sentry/transport/RateLimiter$IRateLimitObserver {
4444
public fun close (Z)V
4545
public static fun createLegacy (Lio/sentry/android/core/BuildInfoProvider;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ILogger;Ljava/lang/String;ILio/sentry/util/LazyEvaluator$Evaluator;)Lio/sentry/android/core/AndroidContinuousProfiler;
46-
public static fun createWithProfilingManager (Landroid/content/Context;Lio/sentry/android/core/BuildInfoProvider;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ILogger;Lio/sentry/util/LazyEvaluator$Evaluator;)Lio/sentry/android/core/AndroidContinuousProfiler;
4746
public fun getChunkId ()Lio/sentry/protocol/SentryId;
4847
public fun getProfilerId ()Lio/sentry/protocol/SentryId;
4948
public fun getRootSpanCounter ()I
@@ -339,6 +338,19 @@ public final class io/sentry/android/core/NetworkBreadcrumbsIntegration : io/sen
339338
public fun register (Lio/sentry/IScopes;Lio/sentry/SentryOptions;)V
340339
}
341340

341+
public class io/sentry/android/core/PerfettoContinuousProfiler : io/sentry/IContinuousProfiler, io/sentry/transport/RateLimiter$IRateLimitObserver {
342+
public fun <init> (Landroid/content/Context;Lio/sentry/android/core/BuildInfoProvider;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ILogger;Lio/sentry/util/LazyEvaluator$Evaluator;)V
343+
public fun close (Z)V
344+
public fun getActiveTraceCount ()I
345+
public fun getChunkId ()Lio/sentry/protocol/SentryId;
346+
public fun getProfilerId ()Lio/sentry/protocol/SentryId;
347+
public fun isRunning ()Z
348+
public fun onRateLimitChanged (Lio/sentry/transport/RateLimiter;)V
349+
public fun reevaluateSampling ()V
350+
public fun startProfiler (Lio/sentry/ProfileLifecycle;Lio/sentry/TracesSampler;)V
351+
public fun stopProfiler (Lio/sentry/ProfileLifecycle;)V
352+
}
353+
342354
public class io/sentry/android/core/PerfettoProfiler {
343355
public fun <init> (Landroid/content/Context;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ILogger;)V
344356
public fun endAndCollect ()Lio/sentry/android/core/AndroidProfiler$ProfileEndData;

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
* Perfetto stack-sampling traces.
3939
*
4040
* <p>This class is intentionally separate from {@link AndroidContinuousProfiler} to keep the two
41-
* profiling backends independent. All ProfilingManager API usage is confined to this file and {@link
42-
* PerfettoProfiler}.
41+
* profiling backends independent. All ProfilingManager API usage is confined to this file and
42+
* {@link PerfettoProfiler}.
4343
*
4444
* <p>Currently, this class doesn't do app-start profiling {@link SentryPerformanceProvider}.
4545
* It is created during {@code Sentry.init()}.
@@ -69,8 +69,7 @@ public class PerfettoContinuousProfiler
6969
private @NotNull SentryId profilerId = SentryId.EMPTY_ID;
7070
private @NotNull SentryId chunkId = SentryId.EMPTY_ID;
7171
private final @NotNull AtomicBoolean isClosed = new AtomicBoolean(false);
72-
private @NotNull SentryDate startProfileChunkTimestamp =
73-
new io.sentry.SentryNanotimeDate();
72+
private @NotNull SentryDate startProfileChunkTimestamp = new io.sentry.SentryNanotimeDate();
7473
private boolean shouldSample = true;
7574
private boolean shouldStop = false;
7675
private boolean isSampled = false;
@@ -196,9 +195,9 @@ public boolean isRunning() {
196195
}
197196

198197
/**
199-
* Resolves scopes on first call. Since PerfettoContinuousProfiler is created during
200-
* Sentry.init() and never used for app-start profiling, scopes is guaranteed to be available by
201-
* the time startProfiler is called.
198+
* Resolves scopes on first call. Since PerfettoContinuousProfiler is created during Sentry.init()
199+
* and never used for app-start profiling, scopes is guaranteed to be available by the time
200+
* startProfiler is called.
202201
*
203202
* <p>Caller must hold {@link #lock}.
204203
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import io.sentry.profilemeasurements.ProfileMeasurementValue;
1616
import java.io.File;
1717
import java.util.HashMap;
18-
import java.util.concurrent.ConcurrentLinkedDeque;
1918
import java.util.Map;
19+
import java.util.concurrent.ConcurrentLinkedDeque;
2020
import java.util.concurrent.CountDownLatch;
2121
import java.util.concurrent.TimeUnit;
2222
import java.util.function.Consumer;

0 commit comments

Comments
 (0)