Skip to content

Commit 3e7e17a

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

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
@@ -193,6 +193,8 @@ export class Profiler<T extends Record<string, ActionTrackEntryPayload>> {
193193
/**
194194
* Measures the execution time of an asynchronous operation.
195195
*
196+
* For synchronous operations, use the {@link measure} method.
197+
*
196198
* Creates performance start/end marks and a final measure.
197199
* All entries have Chrome DevTools Extensibility API payload and are visualized under custom tracks.
198200
* When profiling is disabled, executes and awaits the work function directly without overhead.

0 commit comments

Comments
 (0)