| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -287,6 +287,7 @@ overrides: | |||
| 287 | 287 | - ./internal/mime.js | |
| 288 | 288 | - ./internal/modules/*.js | |
| 289 | 289 | - ./internal/per_context/messageport.js | |
| 290 | + - ./internal/perf/*.js | ||
| 290 | 291 | - ./internal/policy/*.js | |
| 291 | 292 | - ./internal/priority_queue.js | |
| 292 | 293 | - ./internal/process/*.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const { | |||
| 9 | 9 | codes: { | |
| 10 | 10 | ERR_ILLEGAL_CONSTRUCTOR, | |
| 11 | 11 | ERR_INVALID_THIS, | |
| 12 | - } | ||
| 12 | + }, | ||
| 13 | 13 | } = require('internal/errors'); | |
| 14 | 14 | ||
| 15 | 15 | const { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ const { | |||
| 25 | 25 | NODE_PERFORMANCE_MILESTONE_LOOP_START, | |
| 26 | 26 | NODE_PERFORMANCE_MILESTONE_LOOP_EXIT, | |
| 27 | 27 | NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE, | |
| 28 | - NODE_PERFORMANCE_MILESTONE_ENVIRONMENT | ||
| 28 | + NODE_PERFORMANCE_MILESTONE_ENVIRONMENT, | ||
| 29 | 29 | }, | |
| 30 | 30 | loopIdleTime, | |
| 31 | 31 | } = internalBinding('performance'); | |
@@ -37,28 +37,28 @@ class PerformanceNodeTiming { | |||
| 37 | 37 | __proto__: null, | |
| 38 | 38 | enumerable: true, | |
| 39 | 39 | configurable: true, | |
| 40 | - value: 'node' | ||
| 40 | + value: 'node', | ||
| 41 | 41 | }, | |
| 42 | 42 | ||
| 43 | 43 | entryType: { | |
| 44 | 44 | __proto__: null, | |
| 45 | 45 | enumerable: true, | |
| 46 | 46 | configurable: true, | |
| 47 | - value: 'node' | ||
| 47 | + value: 'node', | ||
| 48 | 48 | }, | |
| 49 | 49 | ||
| 50 | 50 | startTime: { | |
| 51 | 51 | __proto__: null, | |
| 52 | 52 | enumerable: true, | |
| 53 | 53 | configurable: true, | |
| 54 | - value: 0 | ||
| 54 | + value: 0, | ||
| 55 | 55 | }, | |
| 56 | 56 | ||
| 57 | 57 | duration: { | |
| 58 | 58 | __proto__: null, | |
| 59 | 59 | enumerable: true, | |
| 60 | 60 | configurable: true, | |
| 61 | - get: now | ||
| 61 | + get: now, | ||
| 62 | 62 | }, | |
| 63 | 63 | ||
| 64 | 64 | nodeStart: { | |
@@ -67,7 +67,7 @@ class PerformanceNodeTiming { | |||
| 67 | 67 | configurable: true, | |
| 68 | 68 | get() { | |
| 69 | 69 | return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_NODE_START); | |
| 70 | - } | ||
| 70 | + }, | ||
| 71 | 71 | }, | |
| 72 | 72 | ||
| 73 | 73 | v8Start: { | |
@@ -76,7 +76,7 @@ class PerformanceNodeTiming { | |||
| 76 | 76 | configurable: true, | |
| 77 | 77 | get() { | |
| 78 | 78 | return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_V8_START); | |
| 79 | - } | ||
| 79 | + }, | ||
| 80 | 80 | }, | |
| 81 | 81 | ||
| 82 | 82 | environment: { | |
@@ -85,7 +85,7 @@ class PerformanceNodeTiming { | |||
| 85 | 85 | configurable: true, | |
| 86 | 86 | get() { | |
| 87 | 87 | return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_ENVIRONMENT); | |
| 88 | - } | ||
| 88 | + }, | ||
| 89 | 89 | }, | |
| 90 | 90 | ||
| 91 | 91 | loopStart: { | |
@@ -94,7 +94,7 @@ class PerformanceNodeTiming { | |||
| 94 | 94 | configurable: true, | |
| 95 | 95 | get() { | |
| 96 | 96 | return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_LOOP_START); | |
| 97 | - } | ||
| 97 | + }, | ||
| 98 | 98 | }, | |
| 99 | 99 | ||
| 100 | 100 | loopExit: { | |
@@ -103,7 +103,7 @@ class PerformanceNodeTiming { | |||
| 103 | 103 | configurable: true, | |
| 104 | 104 | get() { | |
| 105 | 105 | return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_LOOP_EXIT); | |
| 106 | - } | ||
| 106 | + }, | ||
| 107 | 107 | }, | |
| 108 | 108 | ||
| 109 | 109 | bootstrapComplete: { | |
@@ -113,15 +113,15 @@ class PerformanceNodeTiming { | |||
| 113 | 113 | get() { | |
| 114 | 114 | return getMilestoneTimestamp( | |
| 115 | 115 | NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE); | |
| 116 | - } | ||
| 116 | + }, | ||
| 117 | 117 | }, | |
| 118 | 118 | ||
| 119 | 119 | idleTime: { | |
| 120 | 120 | __proto__: null, | |
| 121 | 121 | enumerable: true, | |
| 122 | 122 | configurable: true, | |
| 123 | 123 | get: loopIdleTime, | |
| 124 | - } | ||
| 124 | + }, | ||
| 125 | 125 | }); | |
| 126 | 126 | } | |
| 127 | 127 | ||
@@ -130,7 +130,7 @@ class PerformanceNodeTiming { | |||
| 130 | 130 | ||
| 131 | 131 | const opts = { | |
| 132 | 132 | ...options, | |
| 133 | - depth: options.depth == null ? null : options.depth - 1 | ||
| 133 | + depth: options.depth == null ? null : options.depth - 1, | ||
| 134 | 134 | }; | |
| 135 | 135 | ||
| 136 | 136 | return `PerformanceNodeTiming ${inspect(this.toJSON(), opts)}`; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -213,7 +213,7 @@ class PerformanceObserverEntryList { | |||
| 213 | 213 | ||
| 214 | 214 | const opts = { | |
| 215 | 215 | ...options, | |
| 216 | - depth: options.depth == null ? null : options.depth - 1 | ||
| 216 | + depth: options.depth == null ? null : options.depth - 1, | ||
| 217 | 217 | }; | |
| 218 | 218 | ||
| 219 | 219 | return `PerformanceObserverEntryList ${inspect(this[kBuffer], opts)}`; | |
@@ -358,7 +358,7 @@ class PerformanceObserver { | |||
| 358 | 358 | ||
| 359 | 359 | const opts = { | |
| 360 | 360 | ...options, | |
| 361 | - depth: options.depth == null ? null : options.depth - 1 | ||
| 361 | + depth: options.depth == null ? null : options.depth - 1, | ||
| 362 | 362 | }; | |
| 363 | 363 | ||
| 364 | 364 | return `PerformanceObserver ${inspect({ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,8 @@ const { | |||
| 10 | 10 | const { | |
| 11 | 11 | codes: { | |
| 12 | 12 | ERR_ILLEGAL_CONSTRUCTOR, | |
| 13 | - ERR_MISSING_ARGS | ||
| 14 | - } | ||
| 13 | + ERR_MISSING_ARGS, | ||
| 14 | + }, | ||
| 15 | 15 | } = require('internal/errors'); | |
| 16 | 16 | ||
| 17 | 17 | const { | |
@@ -47,7 +47,7 @@ const { validateInternalField } = require('internal/validators'); | |||
| 47 | 47 | const { convertToInt } = require('internal/webidl'); | |
| 48 | 48 | ||
| 49 | 49 | const { | |
| 50 | - getTimeOriginTimestamp | ||
| 50 | + getTimeOriginTimestamp, | ||
| 51 | 51 | } = internalBinding('performance'); | |
| 52 | 52 | ||
| 53 | 53 | const kPerformanceBrand = Symbol('performance'); | |
@@ -62,7 +62,7 @@ class Performance extends EventTarget { | |||
| 62 | 62 | ||
| 63 | 63 | const opts = { | |
| 64 | 64 | ...options, | |
| 65 | - depth: options.depth == null ? null : options.depth - 1 | ||
| 65 | + depth: options.depth == null ? null : options.depth - 1, | ||
| 66 | 66 | }; | |
| 67 | 67 | ||
| 68 | 68 | return `Performance ${inspect({ | |
@@ -235,7 +235,7 @@ const performance = createPerformance(); | |||
| 235 | 235 | ||
| 236 | 236 | function dispatchBufferFull(type) { | |
| 237 | 237 | const event = new Event(type, { | |
| 238 | - [kTrustEvent]: true | ||
| 238 | + [kTrustEvent]: true, | ||
| 239 | 239 | }); | |
| 240 | 240 | performance.dispatchEvent(event); | |
| 241 | 241 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const { | |||
| 9 | 9 | const { | |
| 10 | 10 | codes: { | |
| 11 | 11 | ERR_ILLEGAL_CONSTRUCTOR, | |
| 12 | - } | ||
| 12 | + }, | ||
| 13 | 13 | } = require('internal/errors'); | |
| 14 | 14 | ||
| 15 | 15 | const { | |
@@ -60,7 +60,7 @@ class PerformanceEntry { | |||
| 60 | 60 | ||
| 61 | 61 | const opts = { | |
| 62 | 62 | ...options, | |
| 63 | - depth: options.depth == null ? null : options.depth - 1 | ||
| 63 | + depth: options.depth == null ? null : options.depth - 1, | ||
| 64 | 64 | }; | |
| 65 | 65 | ||
| 66 | 66 | return `${this.constructor.name} ${inspect(this.toJSON(), opts)}`; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ const { enqueue, bufferResourceTiming } = require('internal/perf/observe'); | |||
| 14 | 14 | const { | |
| 15 | 15 | codes: { | |
| 16 | 16 | ERR_ILLEGAL_CONSTRUCTOR, | |
| 17 | - } | ||
| 17 | + }, | ||
| 18 | 18 | } = require('internal/errors'); | |
| 19 | 19 | const { validateInternalField } = require('internal/validators'); | |
| 20 | 20 | const { kEnumerableProperty } = require('internal/util'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ const { | |||
| 17 | 17 | } = require('internal/validators'); | |
| 18 | 18 | ||
| 19 | 19 | const { | |
| 20 | - isHistogram | ||
| 20 | + isHistogram, | ||
| 21 | 21 | } = require('internal/histogram'); | |
| 22 | 22 | ||
| 23 | 23 | const { | |
@@ -57,7 +57,7 @@ function timerify(fn, options = kEmptyObject) { | |||
| 57 | 57 | ||
| 58 | 58 | validateObject(options, 'options'); | |
| 59 | 59 | const { | |
| 60 | - histogram | ||
| 60 | + histogram, | ||
| 61 | 61 | } = options; | |
| 62 | 62 | ||
| 63 | 63 | if (histogram !== undefined && | |
@@ -99,8 +99,8 @@ function timerify(fn, options = kEmptyObject) { | |||
| 99 | 99 | __proto__: null, | |
| 100 | 100 | configurable: false, | |
| 101 | 101 | enumerable: true, | |
| 102 | - value: `timerified ${fn.name}` | ||
| 103 | - } | ||
| 102 | + value: `timerified ${fn.name}`, | ||
| 103 | + }, | ||
| 104 | 104 | }); | |
| 105 | 105 | ||
| 106 | 106 | return timerified; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,5 +29,5 @@ function refreshTimeOrigin() { | |||
| 29 | 29 | module.exports = { | |
| 30 | 30 | now, | |
| 31 | 31 | getMilestoneTimestamp, | |
| 32 | - refreshTimeOrigin | ||
| 32 | + refreshTimeOrigin, | ||
| 33 | 33 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments