Skip to content

Commit ecb8037

Browse files
committed
ref(profiling) add comment
1 parent 188e4c8 commit ecb8037

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/core/src/profiling.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { DEBUG_BUILD } from "./debug-build";
55
import { getClient } from "./currentScopes";
66

77
/**
8-
*
8+
* Starts the Sentry continuous profiler.
9+
* This mode is exclusive with the transaction profiler and will only work if the profilesSampleRate is set to a falsy value.
10+
* In continuous profiling mode, the profiler will keep reporting profile chunks to Sentry until it is stopped, which allows for continuous profiling of the application.
911
*/
1012
function startProfiler() {
1113
const client = getClient()
@@ -23,7 +25,8 @@ function startProfiler() {
2325
}
2426

2527
/**
26-
*
28+
* Stops the Sentry continuous profiler.
29+
* Calls to stop will stop the profiler and flush the currently collected profile data to Sentry.
2730
*/
2831
function stopProfiler() {
2932
const client = getClient()

0 commit comments

Comments
 (0)