Skip to content

Commit b11b5fc

Browse files
committed
refactor: fix docs
1 parent a58c5fa commit b11b5fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/utils/docs/profiler.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
The `Profiler` class provides a clean, type-safe API for performance monitoring that integrates seamlessly with Chrome DevTools. It supports both synchronous and asynchronous operations with smart defaults for custom track visualization, enabling developers to track performance bottlenecks and optimize application speed.
88

9+
### Features
10+
911
- **Type-Safe API**: Fully typed UserTiming API for [Chrome DevTools Extensibility API](https://developer.chrome.com/docs/devtools/performance/extension)
1012
- **Measure API**: Easy-to-use methods for measuring synchronous and asynchronous code execution times.
1113
- **Custom Track Configuration**: Fully typed reusable configurations for custom track visualization.
@@ -264,6 +266,8 @@ const saved = profiler.measure('save-user', () => saveToDb(user), {
264266

265267
## NodeJSProfiler
266268

269+
### Features
270+
267271
- **Crash-save Write Ahead Log**: Ensures profiling data is saved even if the application crashes.
268272
- **Recoverable Profiles**: Ability to resume profiling sessions after interruptions or crash.
269273
- **Automatic Trace Generation**: Generates trace files compatible with Chrome DevTools for in-depth performance analysis.

0 commit comments

Comments
 (0)