Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/platforms/javascript/guides/node/profiling/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ _(New in version 8.28.0)_

The current profiling implementation stops the profiler automatically after 30 seconds (unless you manually stop it earlier). Naturally, this limitation makes it difficult to get full coverage of your app's execution. We now offer an experimental continuous mode, where profiling data is periodically uploaded while running, with no limit on how long the profiler may run.

To get started with continuous profiling, you can start and stop the profiler directly with `Sentry.profiler.startProfiling` and `Sentry.profiler.stopProfiling`.
To get started with continuous profiling, you can start and stop the profiler directly with `Sentry.profiler.startProfiler` and `Sentry.profiler.stopProfiler`.

<Note>

Expand All @@ -116,11 +116,11 @@ Sentry.init({
dsn: "___PUBLIC_DSN___",
});

Sentry.profiler.startProfiling();
Sentry.profiler.startProfiler();

// run some code here

Sentry.profiler.stopProfiling();
Sentry.profiler.stopProfiler();
```

These new APIs do not offer any sampling functionality—every call to start the profiler will run and start sending profiling data. If you are interested in reducing the amount of profiles that run, you must take care to do it at the callsites.
Expand Down
Loading