| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,12 +25,12 @@ doSomeLongRunningProcess(() => { | |||
| 25 | 25 | }); | |
| 26 | 26 | ``` | |
| 27 | 27 | ||
| 28 | - ## Class: Performance | ||
| 28 | + ## Class: `Performance` | ||
| 29 | 29 | <!-- YAML | |
| 30 | 30 | added: v8.5.0 | |
| 31 | 31 | --> | |
| 32 | 32 | ||
| 33 | - ### performance.clearMarks(\[name\]) | ||
| 33 | + ### `performance.clearMarks([name])` | ||
| 34 | 34 | <!-- YAML | |
| 35 | 35 | added: v8.5.0 | |
| 36 | 36 | --> | |
@@ -40,7 +40,7 @@ added: v8.5.0 | |||
| 40 | 40 | If `name` is not provided, removes all `PerformanceMark` objects from the | |
| 41 | 41 | Performance Timeline. If `name` is provided, removes only the named mark. | |
| 42 | 42 | ||
| 43 | - ### performance.mark(\[name\]) | ||
| 43 | + ### `performance.mark([name])` | ||
| 44 | 44 | <!-- YAML | |
| 45 | 45 | added: v8.5.0 | |
| 46 | 46 | --> | |
@@ -53,7 +53,7 @@ Creates a new `PerformanceMark` entry in the Performance Timeline. A | |||
| 53 | 53 | `performanceEntry.duration` is always `0`. Performance marks are used | |
| 54 | 54 | to mark specific significant moments in the Performance Timeline. | |
| 55 | 55 | ||
| 56 | - ### performance.measure(name, startMark, endMark) | ||
| 56 | + ### `performance.measure(name, startMark, endMark)` | ||
| 57 | 57 | <!-- YAML | |
| 58 | 58 | added: v8.5.0 | |
| 59 | 59 | --> | |
@@ -78,7 +78,7 @@ Performance Timeline or any of the timestamp properties provided by the | |||
| 78 | 78 | `PerformanceNodeTiming` class. If the named `endMark` does not exist, an | |
| 79 | 79 | error will be thrown. | |
| 80 | 80 | ||
| 81 | - ### performance.nodeTiming | ||
| 81 | + ### `performance.nodeTiming` | ||
| 82 | 82 | <!-- YAML | |
| 83 | 83 | added: v8.5.0 | |
| 84 | 84 | --> | |
@@ -88,7 +88,7 @@ added: v8.5.0 | |||
| 88 | 88 | An instance of the `PerformanceNodeTiming` class that provides performance | |
| 89 | 89 | metrics for specific Node.js operational milestones. | |
| 90 | 90 | ||
| 91 | - ### performance.now() | ||
| 91 | + ### `performance.now()` | ||
| 92 | 92 | <!-- YAML | |
| 93 | 93 | added: v8.5.0 | |
| 94 | 94 | --> | |
@@ -98,7 +98,7 @@ added: v8.5.0 | |||
| 98 | 98 | Returns the current high resolution millisecond timestamp, where 0 represents | |
| 99 | 99 | the start of the current `node` process. | |
| 100 | 100 | ||
| 101 | - ### performance.timeOrigin | ||
| 101 | + ### `performance.timeOrigin` | ||
| 102 | 102 | <!-- YAML | |
| 103 | 103 | added: v8.5.0 | |
| 104 | 104 | --> | |
@@ -108,7 +108,7 @@ added: v8.5.0 | |||
| 108 | 108 | The [`timeOrigin`][] specifies the high resolution millisecond timestamp at | |
| 109 | 109 | which the current `node` process began, measured in Unix time. | |
| 110 | 110 | ||
| 111 | - ### performance.timerify(fn) | ||
| 111 | + ### `performance.timerify(fn)` | ||
| 112 | 112 | <!-- YAML | |
| 113 | 113 | added: v8.5.0 | |
| 114 | 114 | --> | |
@@ -141,12 +141,12 @@ obs.observe({ entryTypes: ['function'] }); | |||
| 141 | 141 | wrapped(); | |
| 142 | 142 | ``` | |
| 143 | 143 | ||
| 144 | - ## Class: PerformanceEntry | ||
| 144 | + ## Class: `PerformanceEntry` | ||
| 145 | 145 | <!-- YAML | |
| 146 | 146 | added: v8.5.0 | |
| 147 | 147 | --> | |
| 148 | 148 | ||
| 149 | - ### performanceEntry.duration | ||
| 149 | + ### `performanceEntry.duration` | ||
| 150 | 150 | <!-- YAML | |
| 151 | 151 | added: v8.5.0 | |
| 152 | 152 | --> | |
@@ -156,7 +156,7 @@ added: v8.5.0 | |||
| 156 | 156 | The total number of milliseconds elapsed for this entry. This value will not | |
| 157 | 157 | be meaningful for all Performance Entry types. | |
| 158 | 158 | ||
| 159 | - ### performanceEntry.name | ||
| 159 | + ### `performanceEntry.name` | ||
| 160 | 160 | <!-- YAML | |
| 161 | 161 | added: v8.5.0 | |
| 162 | 162 | --> | |
@@ -165,7 +165,7 @@ added: v8.5.0 | |||
| 165 | 165 | ||
| 166 | 166 | The name of the performance entry. | |
| 167 | 167 | ||
| 168 | - ### performanceEntry.startTime | ||
| 168 | + ### `performanceEntry.startTime` | ||
| 169 | 169 | <!-- YAML | |
| 170 | 170 | added: v8.5.0 | |
| 171 | 171 | --> | |
@@ -175,7 +175,7 @@ added: v8.5.0 | |||
| 175 | 175 | The high resolution millisecond timestamp marking the starting time of the | |
| 176 | 176 | Performance Entry. | |
| 177 | 177 | ||
| 178 | - ### performanceEntry.entryType | ||
| 178 | + ### `performanceEntry.entryType` | ||
| 179 | 179 | <!-- YAML | |
| 180 | 180 | added: v8.5.0 | |
| 181 | 181 | --> | |
@@ -185,7 +185,7 @@ added: v8.5.0 | |||
| 185 | 185 | The type of the performance entry. Currently it may be one of: `'node'`, | |
| 186 | 186 | `'mark'`, `'measure'`, `'gc'`, `'function'`, `'http2'` or `'http'`. | |
| 187 | 187 | ||
| 188 | - ### performanceEntry.kind | ||
| 188 | + ### `performanceEntry.kind` | ||
| 189 | 189 | <!-- YAML | |
| 190 | 190 | added: v8.5.0 | |
| 191 | 191 | --> | |
@@ -201,14 +201,14 @@ The value may be one of: | |||
| 201 | 201 | * `perf_hooks.constants.NODE_PERFORMANCE_GC_INCREMENTAL` | |
| 202 | 202 | * `perf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB` | |
| 203 | 203 | ||
| 204 | - ## Class: PerformanceNodeTiming extends PerformanceEntry | ||
| 204 | + ## Class: `PerformanceNodeTiming extends PerformanceEntry` | ||
| 205 | 205 | <!-- YAML | |
| 206 | 206 | added: v8.5.0 | |
| 207 | 207 | --> | |
| 208 | 208 | ||
| 209 | 209 | Provides timing details for Node.js itself. | |
| 210 | 210 | ||
| 211 | - ### performanceNodeTiming.bootstrapComplete | ||
| 211 | + ### `performanceNodeTiming.bootstrapComplete` | ||
| 212 | 212 | <!-- YAML | |
| 213 | 213 | added: v8.5.0 | |
| 214 | 214 | --> | |
@@ -219,7 +219,7 @@ The high resolution millisecond timestamp at which the Node.js process | |||
| 219 | 219 | completed bootstrapping. If bootstrapping has not yet finished, the property | |
| 220 | 220 | has the value of -1. | |
| 221 | 221 | ||
| 222 | - ### performanceNodeTiming.environment | ||
| 222 | + ### `performanceNodeTiming.environment` | ||
| 223 | 223 | <!-- YAML | |
| 224 | 224 | added: v8.5.0 | |
| 225 | 225 | --> | |
@@ -229,7 +229,7 @@ added: v8.5.0 | |||
| 229 | 229 | The high resolution millisecond timestamp at which the Node.js environment was | |
| 230 | 230 | initialized. | |
| 231 | 231 | ||
| 232 | - ### performanceNodeTiming.loopExit | ||
| 232 | + ### `performanceNodeTiming.loopExit` | ||
| 233 | 233 | <!-- YAML | |
| 234 | 234 | added: v8.5.0 | |
| 235 | 235 | --> | |
@@ -240,7 +240,7 @@ The high resolution millisecond timestamp at which the Node.js event loop | |||
| 240 | 240 | exited. If the event loop has not yet exited, the property has the value of -1. | |
| 241 | 241 | It can only have a value of not -1 in a handler of the [`'exit'`][] event. | |
| 242 | 242 | ||
| 243 | - ### performanceNodeTiming.loopStart | ||
| 243 | + ### `performanceNodeTiming.loopStart` | ||
| 244 | 244 | <!-- YAML | |
| 245 | 245 | added: v8.5.0 | |
| 246 | 246 | --> | |
@@ -251,7 +251,7 @@ The high resolution millisecond timestamp at which the Node.js event loop | |||
| 251 | 251 | started. If the event loop has not yet started (e.g., in the first tick of the | |
| 252 | 252 | main script), the property has the value of -1. | |
| 253 | 253 | ||
| 254 | - ### performanceNodeTiming.nodeStart | ||
| 254 | + ### `performanceNodeTiming.nodeStart` | ||
| 255 | 255 | <!-- YAML | |
| 256 | 256 | added: v8.5.0 | |
| 257 | 257 | --> | |
@@ -261,7 +261,7 @@ added: v8.5.0 | |||
| 261 | 261 | The high resolution millisecond timestamp at which the Node.js process was | |
| 262 | 262 | initialized. | |
| 263 | 263 | ||
| 264 | - ### performanceNodeTiming.v8Start | ||
| 264 | + ### `performanceNodeTiming.v8Start` | ||
| 265 | 265 | <!-- YAML | |
| 266 | 266 | added: v8.5.0 | |
| 267 | 267 | --> | |
@@ -271,9 +271,9 @@ added: v8.5.0 | |||
| 271 | 271 | The high resolution millisecond timestamp at which the V8 platform was | |
| 272 | 272 | initialized. | |
| 273 | 273 | ||
| 274 | - ## Class: PerformanceObserver | ||
| 274 | + ## Class: `PerformanceObserver` | ||
| 275 | 275 | ||
| 276 | - ### new PerformanceObserver(callback) | ||
| 276 | + ### `new PerformanceObserver(callback)` | ||
| 277 | 277 | <!-- YAML | |
| 278 | 278 | added: v8.5.0 | |
| 279 | 279 | --> | |
@@ -310,13 +310,13 @@ notified about new `PerformanceEntry` instances. The callback receives a | |||
| 310 | 310 | `PerformanceObserverEntryList` instance and a reference to the | |
| 311 | 311 | `PerformanceObserver`. | |
| 312 | 312 | ||
| 313 | - ### performanceObserver.disconnect() | ||
| 313 | + ### `performanceObserver.disconnect()` | ||
| 314 | 314 | <!-- YAML | |
| 315 | 315 | added: v8.5.0 | |
| 316 | 316 | --> | |
| 317 | 317 | Disconnects the `PerformanceObserver` instance from all notifications. | |
| 318 | 318 | ||
| 319 | - ### performanceObserver.observe(options) | ||
| 319 | + ### `performanceObserver.observe(options)` | ||
| 320 | 320 | <!-- YAML | |
| 321 | 321 | added: v8.5.0 | |
| 322 | 322 | --> | |
@@ -366,15 +366,15 @@ for (let n = 0; n < 3; n++) | |||
| 366 | 366 | performance.mark(`test${n}`); | |
| 367 | 367 | ``` | |
| 368 | 368 | ||
| 369 | - ## Class: PerformanceObserverEntryList | ||
| 369 | + ## Class: `PerformanceObserverEntryList` | ||
| 370 | 370 | <!-- YAML | |
| 371 | 371 | added: v8.5.0 | |
| 372 | 372 | --> | |
| 373 | 373 | ||
| 374 | 374 | The `PerformanceObserverEntryList` class is used to provide access to the | |
| 375 | 375 | `PerformanceEntry` instances passed to a `PerformanceObserver`. | |
| 376 | 376 | ||
| 377 | - ### performanceObserverEntryList.getEntries() | ||
| 377 | + ### `performanceObserverEntryList.getEntries()` | ||
| 378 | 378 | <!-- YAML | |
| 379 | 379 | added: v8.5.0 | |
| 380 | 380 | --> | |
@@ -384,7 +384,7 @@ added: v8.5.0 | |||
| 384 | 384 | Returns a list of `PerformanceEntry` objects in chronological order | |
| 385 | 385 | with respect to `performanceEntry.startTime`. | |
| 386 | 386 | ||
| 387 | - ### performanceObserverEntryList.getEntriesByName(name\[, type\]) | ||
| 387 | + ### `performanceObserverEntryList.getEntriesByName(name[, type])` | ||
| 388 | 388 | <!-- YAML | |
| 389 | 389 | added: v8.5.0 | |
| 390 | 390 | --> | |
@@ -398,7 +398,7 @@ with respect to `performanceEntry.startTime` whose `performanceEntry.name` is | |||
| 398 | 398 | equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to | |
| 399 | 399 | `type`. | |
| 400 | 400 | ||
| 401 | - ### performanceObserverEntryList.getEntriesByType(type) | ||
| 401 | + ### `performanceObserverEntryList.getEntriesByType(type)` | ||
| 402 | 402 | <!-- YAML | |
| 403 | 403 | added: v8.5.0 | |
| 404 | 404 | --> | |
@@ -410,7 +410,7 @@ Returns a list of `PerformanceEntry` objects in chronological order | |||
| 410 | 410 | with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` | |
| 411 | 411 | is equal to `type`. | |
| 412 | 412 | ||
| 413 | - ## perf_hooks.monitorEventLoopDelay(\[options\]) | ||
| 413 | + ## `perf_hooks.monitorEventLoopDelay([options])` | ||
| 414 | 414 | <!-- YAML | |
| 415 | 415 | added: v11.10.0 | |
| 416 | 416 | --> | |
@@ -444,13 +444,13 @@ console.log(h.percentile(50)); | |||
| 444 | 444 | console.log(h.percentile(99)); | |
| 445 | 445 | ``` | |
| 446 | 446 | ||
| 447 | - ### Class: Histogram | ||
| 447 | + ### Class: `Histogram` | ||
| 448 | 448 | <!-- YAML | |
| 449 | 449 | added: v11.10.0 | |
| 450 | 450 | --> | |
| 451 | 451 | Tracks the event loop delay at a given sampling rate. | |
| 452 | 452 | ||
| 453 | - #### histogram.disable() | ||
| 453 | + #### `histogram.disable()` | ||
| 454 | 454 | <!-- YAML | |
| 455 | 455 | added: v11.10.0 | |
| 456 | 456 | --> | |
@@ -460,7 +460,7 @@ added: v11.10.0 | |||
| 460 | 460 | Disables the event loop delay sample timer. Returns `true` if the timer was | |
| 461 | 461 | stopped, `false` if it was already stopped. | |
| 462 | 462 | ||
| 463 | - #### histogram.enable() | ||
| 463 | + #### `histogram.enable()` | ||
| 464 | 464 | <!-- YAML | |
| 465 | 465 | added: v11.10.0 | |
| 466 | 466 | --> | |
@@ -470,7 +470,7 @@ added: v11.10.0 | |||
| 470 | 470 | Enables the event loop delay sample timer. Returns `true` if the timer was | |
| 471 | 471 | started, `false` if it was already started. | |
| 472 | 472 | ||
| 473 | - #### histogram.exceeds | ||
| 473 | + #### `histogram.exceeds` | ||
| 474 | 474 | <!-- YAML | |
| 475 | 475 | added: v11.10.0 | |
| 476 | 476 | --> | |
@@ -480,7 +480,7 @@ added: v11.10.0 | |||
| 480 | 480 | The number of times the event loop delay exceeded the maximum 1 hour event | |
| 481 | 481 | loop delay threshold. | |
| 482 | 482 | ||
| 483 | - #### histogram.max | ||
| 483 | + #### `histogram.max` | ||
| 484 | 484 | <!-- YAML | |
| 485 | 485 | added: v11.10.0 | |
| 486 | 486 | --> | |
@@ -489,7 +489,7 @@ added: v11.10.0 | |||
| 489 | 489 | ||
| 490 | 490 | The maximum recorded event loop delay. | |
| 491 | 491 | ||
| 492 | - #### histogram.mean | ||
| 492 | + #### `histogram.mean` | ||
| 493 | 493 | <!-- YAML | |
| 494 | 494 | added: v11.10.0 | |
| 495 | 495 | --> | |
@@ -498,7 +498,7 @@ added: v11.10.0 | |||
| 498 | 498 | ||
| 499 | 499 | The mean of the recorded event loop delays. | |
| 500 | 500 | ||
| 501 | - #### histogram.min | ||
| 501 | + #### `histogram.min` | ||
| 502 | 502 | <!-- YAML | |
| 503 | 503 | added: v11.10.0 | |
| 504 | 504 | --> | |
@@ -507,7 +507,7 @@ added: v11.10.0 | |||
| 507 | 507 | ||
| 508 | 508 | The minimum recorded event loop delay. | |
| 509 | 509 | ||
| 510 | - #### histogram.percentile(percentile) | ||
| 510 | + #### `histogram.percentile(percentile)` | ||
| 511 | 511 | <!-- YAML | |
| 512 | 512 | added: v11.10.0 | |
| 513 | 513 | --> | |
@@ -517,7 +517,7 @@ added: v11.10.0 | |||
| 517 | 517 | ||
| 518 | 518 | Returns the value at the given percentile. | |
| 519 | 519 | ||
| 520 | - #### histogram.percentiles | ||
| 520 | + #### `histogram.percentiles` | ||
| 521 | 521 | <!-- YAML | |
| 522 | 522 | added: v11.10.0 | |
| 523 | 523 | --> | |
@@ -526,14 +526,14 @@ added: v11.10.0 | |||
| 526 | 526 | ||
| 527 | 527 | Returns a `Map` object detailing the accumulated percentile distribution. | |
| 528 | 528 | ||
| 529 | - #### histogram.reset() | ||
| 529 | + #### `histogram.reset()` | ||
| 530 | 530 | <!-- YAML | |
| 531 | 531 | added: v11.10.0 | |
| 532 | 532 | --> | |
| 533 | 533 | ||
| 534 | 534 | Resets the collected histogram data. | |
| 535 | 535 | ||
| 536 | - #### histogram.stddev | ||
| 536 | + #### `histogram.stddev` | ||
| 537 | 537 | <!-- YAML | |
| 538 | 538 | added: v11.10.0 | |
| 539 | 539 | --> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments