@bemoje/profiler 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,8 +2,15 @@
2
2
 
3
3
  Performance profiling utilities for measuring execution time of functions, class methods, and modules.
4
4
 
5
- [![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/)
6
- [![Module](https://img.shields.io/badge/Module-ESM-yellow)](https://nodejs.org/api/esm.html)
5
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/) [![Module](https://img.shields.io/badge/Module-ESM-yellow)](https://nodejs.org/api/esm.html)
6
+
7
+ ## Exports
8
+
9
+ <!-- EXPORTS_START -->
10
+
11
+ - **Profiler**: A utility class for profiling functions, classes, and modules to measure execution time and other performance metrics.
12
+
13
+ <!-- EXPORTS_END -->
7
14
 
8
15
  ## Installation
9
16
 
@@ -89,18 +96,3 @@ Profiler.printResults({ sortBy: 'totalTimeUs' })
89
96
  const results = Profiler.getResults({ sortBy: 'calls' })
90
97
  // [['methodName', { calls, totalTimeUs, avgTimeUs, minTimeUs, maxTimeUs }], ...]
91
98
  ```
92
-
93
- ## API Reference
94
-
95
- | Export | Description |
96
- | ------------------------- | --------------------------------------------------------- |
97
- | `Profiler` | Main class with static methods for profiling |
98
- | `Profiler.fn` | Wrap a standalone function with profiling |
99
- | `Profiler.class` | Profile all methods of a class (decorator or direct call) |
100
- | `Profiler.classStatic` | Profile only static methods of a class |
101
- | `Profiler.classPrototype` | Profile only prototype methods of a class |
102
- | `Profiler.module` | Profile all exported functions of a module object |
103
- | `Profiler.getResults` | Get profiling results as structured data |
104
- | `Profiler.printResults` | Print a formatted profiling table to the console |
105
- | `Profiler.enabled` | Enable or disable profiling globally |
106
- | `Profiler.data` | Access all profiler instances |