-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathIContinuousProfiler.java
More file actions
28 lines (21 loc) · 764 Bytes
/
IContinuousProfiler.java
File metadata and controls
28 lines (21 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package io.sentry;
import io.sentry.protocol.SentryId;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
/** Used for performing operations when a transaction is started or ended. */
@ApiStatus.Internal
public interface IContinuousProfiler {
boolean isRunning();
void startProfiler(
final @NotNull ProfileLifecycle profileLifecycle, final @NotNull TracesSampler tracesSampler);
void stopProfiler(final @NotNull ProfileLifecycle profileLifecycle);
/**
* Cancel the profiler and stops it.
*
* @param isTerminating whether the profiler is terminating and won't be restarted or not.
*/
void close(final boolean isTerminating);
void reevaluateSampling();
@NotNull
SentryId getProfilerId();
}