@shopgate/pwa-benchmark 7.29.1-beta.2 → 7.29.1-beta.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/keyFigure.js +1 -1
- package/package.json +1 -1
package/keyFigure.js
CHANGED
|
@@ -9,7 +9,7 @@ export var KEY_FIGURE_METHOD_OBSERVER='observer';/**
|
|
|
9
9
|
* @param {string} method Method.
|
|
10
10
|
*/function KeyFigure(mode,method){_classCallCheck(this,KeyFigure);this.mode=mode;this.method=method;this.setStarted(true);}/**
|
|
11
11
|
* Toggles the status of the benchmark and also clears the result.
|
|
12
|
-
* @param {
|
|
12
|
+
* @param {boolean} started Whether benchmark is running or not.
|
|
13
13
|
*/return _createClass(KeyFigure,[{key:"setStarted",value:function setStarted(started){if(started){this.measure={exclusiveTimers:[],timings:{},observers:{},inclusive:{},exclusive:{}};}this.started=true;}/**
|
|
14
14
|
* Starts measuring.
|
|
15
15
|
* @param {string} key Unique identifier for action.
|