smartlog-destination-devtools/.cache/e8/55e31b98e31fd5caa04abffcd6980b.json

1 line
25 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/@pushrocks/early/dist/early.hrtMeasurement.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/early/ts/early.hrtMeasurement.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/early/package.json","includedInParent":true,"mtime":1542058764035},{"name":"process","loc":{"line":3,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/early/dist/early.hrtMeasurement.js","resolved":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/process/browser.js"}],"generated":{"js":"\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst process = require(\"process\");\n/**\n * easy high resolution time measurement\n */\nclass HrtMeasurement {\n constructor() {\n this.nanoSeconds = null;\n this.milliSeconds = null;\n this._hrTimeStart = null;\n this._hrTimeStopDiff = null;\n this._started = false;\n }\n /**\n * start the measurement\n */\n start() {\n this._started = true;\n this._hrTimeStart = process.hrtime();\n }\n /**\n * stop the measurement\n */\n stop() {\n if (this._started === false) {\n console.log(\"Hasn't started yet\");\n return;\n }\n this._hrTimeStopDiff = process.hrtime(this._hrTimeStart);\n this.nanoSeconds = this._hrTimeStopDiff[0] * 1e9 + this._hrTimeStopDiff[1];\n this.milliSeconds = this.nanoSeconds / 1000000;\n return this;\n }\n /**\n * reset the measurement\n */\n reset() {\n this.nanoSeconds = null;\n this.milliSeconds = null;\n this._hrTimeStart = null;\n this._hrTimeStopDiff = null;\n this._started = false;\n }\n}\nexports.HrtMeasurement = HrtMeasurement;\n","map":{"mappings":[{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":4,"column":0}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":1,"column":35},"generated":{"line":4,"column":35}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":5,"column":0}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":5,"column":3},"generated":{"line":7,"column":3}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":8,"column":0}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":9,"column":4}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":10,"column":8}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":7,"column":13},"generated":{"line":10,"column":24}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":7,"column":24},"generated":{"line":10,"column":27}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":7,"column":28},"generated":{"line":10,"column":31}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":7,"column":29},"generated":{"line":10,"column":32}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":11,"column":8}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":11,"column":25}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":8,"column":25},"generated":{"line":11,"column":28}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"original":{"line":8,"column":29},"generated":{"line":11,"column":32}},{"source":"../ts/early.hrtMeasurement.ts","name":null,"origina