We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7b0b8 commit 8a9db93Copy full SHA for 8a9db93
spark-api/src/main/java/me/lucko/spark/api/profiler/Profiler.java
@@ -1,8 +1,23 @@
1
package me.lucko.spark.api.profiler;
2
3
+import org.jetbrains.annotations.Nullable;
4
+
5
public interface Profiler {
6
7
+ /**
8
+ * Start the Spark Profiler using a profiler configuration.
9
+ * A configuration can be built using {@link ProfilerConfiguration#builder()}.
10
+ *
11
+ * @param configuration the configuration object
12
+ * @return if the profiler started successfully
13
+ */
14
boolean start(ProfilerConfiguration configuration);
15
16
17
+ * Stop the currently running profiler.
18
19
+ * @return the profiler report or null if no profiler was running.
20
21
+ @Nullable
22
ProfilerReport stop();
23
}
0 commit comments