smartlog-destination-devtools/.cache/2a/d84283acedd63d7fe07bcab7247d2c.json
2018-11-13 01:32:39 +01:00

1 line
38 KiB
JSON

{"id":"node_modules/leakage/lib/result.js","dependencies":[{"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/leakage/package.json","includedInParent":true,"mtime":1542058764034},{"name":"pretty-bytes","loc":{"line":1,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/leakage/lib/result.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/pretty-bytes/index.js"}],"generated":{"js":"function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar prettyBytes = require('pretty-bytes');\n\nmodule.exports = {\n createResult: createResult\n};\n\nvar Result =\n/*#__PURE__*/\nfunction () {\n function Result(heapDiffs, gcollections, iterations) {\n _classCallCheck(this, Result);\n\n this.heapDiffs = heapDiffs;\n this.gcollections = gcollections;\n this.iterations = iterations;\n }\n\n _createClass(Result, [{\n key: \"printSummary\",\n value: function printSummary(title) {\n var log = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : console.log;\n var changesInBytes = this.heapDiffs.map(function (heapDiff) {\n return heapDiff.change.size_bytes;\n });\n var average = changesInBytes.reduce(function (sum, change) {\n return sum + change;\n }, 0) / changesInBytes.length;\n var minimum = changesInBytes.reduce(function (min, change) {\n return change < min ? change : min;\n }, Infinity);\n var maximum = changesInBytes.reduce(function (max, change) {\n return change > max ? change : max;\n }, -Infinity);\n log(title ? \"Leak test summary - \".concat(title, \":\") : \"Leak test summary:\");\n log(\" Did \".concat(this.gcollections, \" heap diffs, iterating \").concat(this.iterations, \" times each.\"));\n log(\" Heap diff summary: \".concat(formatDiffSize(average), \" avg, \").concat(formatDiffSize(minimum), \" min, \").concat(formatDiffSize(maximum), \" max\"));\n log(\" Heap diffs: \".concat(this.heapDiffs.map(function (heapDiff) {\n return formatDiffSize(heapDiff.change.size_bytes);\n })));\n }\n }]);\n\n return Result;\n}();\n\nfunction createResult(heapDiffs, options) {\n var {\n gcollections: gcollections,\n iterations: iterations\n } = options;\n return new Result(heapDiffs, gcollections, iterations);\n}\n\nfunction formatDiffSize(size) {\n var formattedSize = prettyBytes(size);\n return size > 0 ? \"+\".concat(formattedSize) : formattedSize;\n}","map":{"mappings":[{"generated":{"line":7,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":0}},{"name":"prettyBytes","generated":{"line":7,"column":4},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":6}},{"generated":{"line":7,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":17}},{"name":"require","generated":{"line":7,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":20}},{"generated":{"line":7,"column":25},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":27}},{"generated":{"line":7,"column":26},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":28}},{"generated":{"line":7,"column":40},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":27}},{"generated":{"line":7,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":1,"column":0}},{"name":"module","generated":{"line":9,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":0}},{"generated":{"line":9,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":6}},{"name":"exports","generated":{"line":9,"column":7},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":7}},{"generated":{"line":9,"column":14},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":0}},{"generated":{"line":9,"column":17},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":17}},{"name":"createResult","generated":{"line":10,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":4,"column":2}},{"name":"createResult","generated":{"line":10,"column":2},"source":"node_modules/leakage/lib/result.js","original":{"line":4,"column":2}},{"generated":{"line":10,"column":14},"source":"node_modules/leakage/lib/result.js","original":{"line":4,"column":14}},{"name":"createResult","generated":{"line":10,"column":16},"source":"node_modules/leakage/lib/result.js","original":{"line":4,"column":2}},{"generated":{"line":11,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":17}},{"generated":{"line":11,"column":1},"source":"node_modules/leakage/lib/result.js","original":{"line":3,"column":0}},{"name":"Result","generated":{"line":13,"column":4},"source":"node_modules/leakage/lib/result.js","original":{"line":7,"column":6}},{"generated":{"line":16,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":2}},{"name":"heapDiffs","generated":{"line":16,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":15}},{"generated":{"line":16,"column":27},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":2}},{"name":"gcollections","generated":{"line":16,"column":29},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":26}},{"generated":{"line":16,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":2}},{"name":"iterations","generated":{"line":16,"column":43},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":40}},{"generated":{"line":16,"column":53},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":2}},{"generated":{"line":16,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":52}},{"generated":{"line":17,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":8,"column":52}},{"generated":{"line":19,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":9,"column":4}},{"name":"heapDiffs","generated":{"line":19,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":9,"column":9}},{"generated":{"line":19,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":9,"column":4}},{"name":"heapDiffs","generated":{"line":19,"column":21},"source":"node_modules/leakage/lib/result.js","original":{"line":9,"column":21}},{"generated":{"line":19,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":9,"column":4}},{"generated":{"line":20,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":10,"column":4}},{"name":"gcollections","generated":{"line":20,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":10,"column":9}},{"generated":{"line":20,"column":21},"source":"node_modules/leakage/lib/result.js","original":{"line":10,"column":4}},{"name":"gcollections","generated":{"line":20,"column":24},"source":"node_modules/leakage/lib/result.js","original":{"line":10,"column":24}},{"generated":{"line":20,"column":36},"source":"node_modules/leakage/lib/result.js","original":{"line":10,"column":4}},{"generated":{"line":21,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":11,"column":4}},{"name":"iterations","generated":{"line":21,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":11,"column":9}},{"generated":{"line":21,"column":19},"source":"node_modules/leakage/lib/result.js","original":{"line":11,"column":4}},{"name":"iterations","generated":{"line":21,"column":22},"source":"node_modules/leakage/lib/result.js","original":{"line":11,"column":22}},{"generated":{"line":21,"column":32},"source":"node_modules/leakage/lib/result.js","original":{"line":11,"column":4}},{"generated":{"line":22,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":12,"column":3}},{"name":"title","generated":{"line":26,"column":33},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":16}},{"generated":{"line":26,"column":40},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":42}},{"generated":{"line":27,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":42}},{"name":"log","generated":{"line":27,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":23}},{"generated":{"line":27,"column":13},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":42}},{"name":"console","generated":{"line":27,"column":84},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":29}},{"generated":{"line":27,"column":91},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":36}},{"name":"log","generated":{"line":27,"column":92},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":37}},{"generated":{"line":27,"column":95},"source":"node_modules/leakage/lib/result.js","original":{"line":14,"column":42}},{"generated":{"line":28,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":4}},{"name":"changesInBytes","generated":{"line":28,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":10}},{"generated":{"line":28,"column":24},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":24}},{"generated":{"line":28,"column":27},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":27}},{"name":"heapDiffs","generated":{"line":28,"column":32},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":32}},{"generated":{"line":28,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":27}},{"name":"map","generated":{"line":28,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":42}},{"generated":{"line":28,"column":45},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":27}},{"generated":{"line":28,"column":46},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":46}},{"name":"heapDiff","generated":{"line":28,"column":56},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":46}},{"generated":{"line":28,"column":64},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":54}},{"generated":{"line":29,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":54}},{"name":"heapDiff","generated":{"line":29,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":58}},{"generated":{"line":29,"column":23},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":66}},{"name":"change","generated":{"line":29,"column":24},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":67}},{"generated":{"line":29,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":58}},{"name":"size_bytes","generated":{"line":29,"column":31},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":74}},{"generated":{"line":29,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":54}},{"generated":{"line":30,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":54}},{"generated":{"line":30,"column":7},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":27}},{"generated":{"line":30,"column":8},"source":"node_modules/leakage/lib/result.js","original":{"line":15,"column":4}},{"generated":{"line":31,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":4}},{"name":"average","generated":{"line":31,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":10}},{"generated":{"line":31,"column":17},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":17}},{"name":"changesInBytes","generated":{"line":31,"column":20},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":20}},{"generated":{"line":31,"column":34},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":34}},{"name":"reduce","generated":{"line":31,"column":35},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":35}},{"generated":{"line":31,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":20}},{"generated":{"line":31,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":42}},{"name":"sum","generated":{"line":31,"column":52},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":43}},{"generated":{"line":31,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":42}},{"name":"change","generated":{"line":31,"column":57},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":48}},{"generated":{"line":31,"column":63},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":42}},{"generated":{"line":32,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":42}},{"name":"sum","generated":{"line":32,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":59}},{"generated":{"line":32,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":62}},{"name":"change","generated":{"line":32,"column":21},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":65}},{"generated":{"line":32,"column":27},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":42}},{"generated":{"line":33,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":42}},{"generated":{"line":33,"column":7},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":20}},{"generated":{"line":33,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":73}},{"generated":{"line":33,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":20}},{"name":"changesInBytes","generated":{"line":33,"column":14},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":78}},{"generated":{"line":33,"column":28},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":92}},{"name":"length","generated":{"line":33,"column":29},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":93}},{"generated":{"line":33,"column":35},"source":"node_modules/leakage/lib/result.js","original":{"line":16,"column":4}},{"generated":{"line":34,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":4}},{"name":"minimum","generated":{"line":34,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":10}},{"generated":{"line":34,"column":17},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":17}},{"name":"changesInBytes","generated":{"line":34,"column":20},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":20}},{"generated":{"line":34,"column":34},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":34}},{"name":"reduce","generated":{"line":34,"column":35},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":35}},{"generated":{"line":34,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":20}},{"generated":{"line":34,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":42}},{"name":"min","generated":{"line":34,"column":52},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":43}},{"generated":{"line":34,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":42}},{"name":"change","generated":{"line":34,"column":57},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":48}},{"generated":{"line":34,"column":63},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":42}},{"generated":{"line":35,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":42}},{"name":"change","generated":{"line":35,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":59}},{"generated":{"line":35,"column":21},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":65}},{"name":"min","generated":{"line":35,"column":24},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":68}},{"generated":{"line":35,"column":27},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":59}},{"name":"change","generated":{"line":35,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":74}},{"generated":{"line":35,"column":36},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":59}},{"name":"min","generated":{"line":35,"column":39},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":83}},{"generated":{"line":35,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":42}},{"generated":{"line":36,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":42}},{"generated":{"line":36,"column":7},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":20}},{"name":"Infinity","generated":{"line":36,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":88}},{"generated":{"line":36,"column":17},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":20}},{"generated":{"line":36,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":17,"column":4}},{"generated":{"line":37,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":4}},{"name":"maximum","generated":{"line":37,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":10}},{"generated":{"line":37,"column":17},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":17}},{"name":"changesInBytes","generated":{"line":37,"column":20},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":20}},{"generated":{"line":37,"column":34},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":34}},{"name":"reduce","generated":{"line":37,"column":35},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":35}},{"generated":{"line":37,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":20}},{"generated":{"line":37,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":42}},{"name":"max","generated":{"line":37,"column":52},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":43}},{"generated":{"line":37,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":42}},{"name":"change","generated":{"line":37,"column":57},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":48}},{"generated":{"line":37,"column":63},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":42}},{"generated":{"line":38,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":42}},{"name":"change","generated":{"line":38,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":59}},{"generated":{"line":38,"column":21},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":65}},{"name":"max","generated":{"line":38,"column":24},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":68}},{"generated":{"line":38,"column":27},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":59}},{"name":"change","generated":{"line":38,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":74}},{"generated":{"line":38,"column":36},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":59}},{"name":"max","generated":{"line":38,"column":39},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":83}},{"generated":{"line":38,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":42}},{"generated":{"line":39,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":42}},{"generated":{"line":39,"column":7},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":20}},{"generated":{"line":39,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":88}},{"name":"Infinity","generated":{"line":39,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":89}},{"generated":{"line":39,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":20}},{"generated":{"line":39,"column":19},"source":"node_modules/leakage/lib/result.js","original":{"line":18,"column":4}},{"name":"log","generated":{"line":40,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":4}},{"name":"log","generated":{"line":40,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":4}},{"generated":{"line":40,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":7}},{"name":"title","generated":{"line":40,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":8}},{"generated":{"line":40,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":13}},{"name":"title","generated":{"line":40,"column":48},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":39}},{"generated":{"line":40,"column":53},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":13}},{"generated":{"line":40,"column":82},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":7}},{"generated":{"line":40,"column":83},"source":"node_modules/leakage/lib/result.js","original":{"line":20,"column":4}},{"name":"log","generated":{"line":41,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":4}},{"name":"log","generated":{"line":41,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":4}},{"generated":{"line":41,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":7}},{"generated":{"line":41,"column":26},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":17}},{"name":"gcollections","generated":{"line":41,"column":31},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":22}},{"generated":{"line":41,"column":43},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":7}},{"generated":{"line":41,"column":79},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":60}},{"name":"iterations","generated":{"line":41,"column":84},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":65}},{"generated":{"line":41,"column":94},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":7}},{"generated":{"line":41,"column":112},"source":"node_modules/leakage/lib/result.js","original":{"line":21,"column":4}},{"name":"log","generated":{"line":42,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":4}},{"name":"log","generated":{"line":42,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":4}},{"generated":{"line":42,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":7}},{"name":"formatDiffSize","generated":{"line":42,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":32}},{"generated":{"line":42,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":46}},{"name":"average","generated":{"line":42,"column":56},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":47}},{"generated":{"line":42,"column":63},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":46}},{"generated":{"line":42,"column":64},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":7}},{"name":"formatDiffSize","generated":{"line":42,"column":83},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":64}},{"generated":{"line":42,"column":97},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":78}},{"name":"minimum","generated":{"line":42,"column":98},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":79}},{"generated":{"line":42,"column":105},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":78}},{"generated":{"line":42,"column":106},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":7}},{"name":"formatDiffSize","generated":{"line":42,"column":125},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":96}},{"generated":{"line":42,"column":139},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":110}},{"name":"maximum","generated":{"line":42,"column":140},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":111}},{"generated":{"line":42,"column":147},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":110}},{"generated":{"line":42,"column":148},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":7}},{"generated":{"line":42,"column":158},"source":"node_modules/leakage/lib/result.js","original":{"line":22,"column":4}},{"name":"log","generated":{"line":43,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":4}},{"name":"log","generated":{"line":43,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":4}},{"generated":{"line":43,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":7}},{"generated":{"line":43,"column":41},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":32}},{"name":"heapDiffs","generated":{"line":43,"column":46},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":37}},{"generated":{"line":43,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":32}},{"name":"map","generated":{"line":43,"column":56},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":47}},{"generated":{"line":43,"column":59},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":32}},{"generated":{"line":43,"column":60},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":51}},{"name":"heapDiff","generated":{"line":43,"column":70},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":51}},{"generated":{"line":43,"column":78},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":59}},{"generated":{"line":44,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":59}},{"name":"formatDiffSize","generated":{"line":44,"column":15},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":63}},{"generated":{"line":44,"column":29},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":77}},{"name":"heapDiff","generated":{"line":44,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":78}},{"generated":{"line":44,"column":38},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":86}},{"name":"change","generated":{"line":44,"column":39},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":87}},{"generated":{"line":44,"column":45},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":78}},{"name":"size_bytes","generated":{"line":44,"column":46},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":94}},{"generated":{"line":44,"column":56},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":77}},{"generated":{"line":44,"column":57},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":59}},{"generated":{"line":45,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":59}},{"generated":{"line":45,"column":7},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":32}},{"generated":{"line":45,"column":8},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":7}},{"generated":{"line":45,"column":10},"source":"node_modules/leakage/lib/result.js","original":{"line":23,"column":4}},{"generated":{"line":46,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":24,"column":3}},{"generated":{"line":52,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":0}},{"name":"createResult","generated":{"line":52,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":9}},{"generated":{"line":52,"column":21},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":0}},{"name":"heapDiffs","generated":{"line":52,"column":22},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":23}},{"generated":{"line":52,"column":31},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":0}},{"name":"options","generated":{"line":52,"column":33},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":34}},{"generated":{"line":52,"column":40},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":0}},{"generated":{"line":52,"column":42},"source":"node_modules/leakage/lib/result.js","original":{"line":27,"column":43}},{"generated":{"line":53,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":2}},{"generated":{"line":53,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":8}},{"name":"gcollections","generated":{"line":54,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":10}},{"name":"gcollections","generated":{"line":54,"column":4},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":10}},{"generated":{"line":54,"column":16},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":22}},{"name":"gcollections","generated":{"line":54,"column":18},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":10}},{"generated":{"line":54,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":8}},{"name":"iterations","generated":{"line":55,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":24}},{"name":"iterations","generated":{"line":55,"column":4},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":24}},{"generated":{"line":55,"column":14},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":34}},{"name":"iterations","generated":{"line":55,"column":16},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":24}},{"generated":{"line":56,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":8}},{"name":"options","generated":{"line":56,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":39}},{"generated":{"line":56,"column":13},"source":"node_modules/leakage/lib/result.js","original":{"line":28,"column":2}},{"generated":{"line":57,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":2}},{"generated":{"line":57,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":9}},{"name":"Result","generated":{"line":57,"column":13},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":13}},{"generated":{"line":57,"column":19},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":9}},{"name":"heapDiffs","generated":{"line":57,"column":20},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":20}},{"generated":{"line":57,"column":29},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":9}},{"name":"gcollections","generated":{"line":57,"column":31},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":31}},{"generated":{"line":57,"column":43},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":9}},{"name":"iterations","generated":{"line":57,"column":45},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":45}},{"generated":{"line":57,"column":55},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":9}},{"generated":{"line":57,"column":56},"source":"node_modules/leakage/lib/result.js","original":{"line":30,"column":2}},{"generated":{"line":58,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":31,"column":1}},{"generated":{"line":60,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":33,"column":0}},{"name":"formatDiffSize","generated":{"line":60,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":33,"column":9}},{"generated":{"line":60,"column":23},"source":"node_modules/leakage/lib/result.js","original":{"line":33,"column":0}},{"name":"size","generated":{"line":60,"column":24},"source":"node_modules/leakage/lib/result.js","original":{"line":33,"column":25}},{"generated":{"line":60,"column":28},"source":"node_modules/leakage/lib/result.js","original":{"line":33,"column":0}},{"generated":{"line":60,"column":30},"source":"node_modules/leakage/lib/result.js","original":{"line":33,"column":31}},{"generated":{"line":61,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":2}},{"name":"formattedSize","generated":{"line":61,"column":6},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":8}},{"generated":{"line":61,"column":19},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":21}},{"name":"prettyBytes","generated":{"line":61,"column":22},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":24}},{"generated":{"line":61,"column":33},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":35}},{"name":"size","generated":{"line":61,"column":34},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":36}},{"generated":{"line":61,"column":38},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":35}},{"generated":{"line":61,"column":39},"source":"node_modules/leakage/lib/result.js","original":{"line":34,"column":2}},{"generated":{"line":62,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":2}},{"name":"size","generated":{"line":62,"column":9},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":9}},{"generated":{"line":62,"column":13},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":13}},{"generated":{"line":62,"column":16},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":16}},{"generated":{"line":62,"column":17},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":9}},{"name":"formattedSize","generated":{"line":62,"column":31},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":24}},{"generated":{"line":62,"column":44},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":9}},{"name":"formattedSize","generated":{"line":62,"column":48},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":42}},{"generated":{"line":62,"column":61},"source":"node_modules/leakage/lib/result.js","original":{"line":35,"column":2}},{"generated":{"line":63,"column":0},"source":"node_modules/leakage/lib/result.js","original":{"line":36,"column":1}}],"sources":{"node_modules/leakage/lib/result.js":"const prettyBytes = require('pretty-bytes')\n\nmodule.exports = {\n createResult\n}\n\nclass Result {\n constructor (heapDiffs, gcollections, iterations) {\n this.heapDiffs = heapDiffs\n this.gcollections = gcollections\n this.iterations = iterations\n }\n\n printSummary (title, log = console.log) {\n const changesInBytes = this.heapDiffs.map(heapDiff => heapDiff.change.size_bytes)\n const average = changesInBytes.reduce((sum, change) => sum + change, 0) / changesInBytes.length\n const minimum = changesInBytes.reduce((min, change) => change < min ? change : min, Infinity)\n const maximum = changesInBytes.reduce((max, change) => change > max ? change : max, -Infinity)\n\n log(title ? `Leak test summary - ${title}:` : `Leak test summary:`)\n log(` Did ${this.gcollections} heap diffs, iterating ${this.iterations} times each.`)\n log(` Heap diff summary: ${formatDiffSize(average)} avg, ${formatDiffSize(minimum)} min, ${formatDiffSize(maximum)} max`)\n log(` Heap diffs: ${this.heapDiffs.map(heapDiff => formatDiffSize(heapDiff.change.size_bytes))}`)\n }\n}\n\nfunction createResult (heapDiffs, options) {\n const { gcollections, iterations } = options\n\n return new Result(heapDiffs, gcollections, iterations)\n}\n\nfunction formatDiffSize (size) {\n const formattedSize = prettyBytes(size)\n return size > 0 ? `+${formattedSize}` : formattedSize\n}\n"},"lineCount":null}},"hash":"623c717b1028e33d787c25db951f8e25","cacheData":{"env":{}}}