Skip to content

Commit 538c095

Browse files
Update packages/utils/src/lib/profiler/profiler.ts
Co-authored-by: Matěj Chalk <[email protected]>
1 parent a88f9da commit 538c095

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/utils/src/lib/profiler/profiler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export class Profiler<T extends Record<string, ActionTrackEntryPayload>> {
157157
/**
158158
* Measures the execution time of a synchronous operation.
159159
*
160+
* For asynchronous operations, use the {@link measureAsync} method.
161+
*
160162
* Creates performance start/end marks and a final measure.
161163
* All entries have Chrome DevTools Extensibility API payload and are visualized under custom tracks.
162164
* When profiling is disabled, executes the work function directly without overhead.

0 commit comments

Comments
 (0)