UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

7 lines (6 loc) 2.24 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ "use strict";var requireProfiler;"function"!=typeof define&&"object"==typeof module&&"object"==typeof module.exports?(global.define=function(e,r){module.exports=r(),global.define=void 0},requireProfiler=function(){return require("v8-profiler")}):requireProfiler=function(){return require.__$__nodeRequire("v8-profiler")},define([],function(){function e(e,r,t,i){this.name=e,this.started=r,this.stopped=t,this.duration=Math.round((1e9*t[0]+t[1]-(1e9*r[0]+r[1]))/1e6),this.profile=i}function r(r){var n=o.has(r)?requireProfiler().stopProfiling(r):void 0,f=t.get(r);if(void 0!==f){var a=new e(f.name,f.started,process.hrtime(),n);i.set(r,a),t.delete(r)}}e.compareByStart=function(e,r){return e.started<r.started?-1:e.started>r.started?1:0},global._perfStarts=global._perfStarts||new Map,global._perfTicks=global._perfTicks||new Map,global._perfToBeProfiled=global._perfToBeProfiled||new Set;var t=global._perfStarts,i=global._perfTicks,o=global._perfToBeProfiled,n={Tick:e,startTimer:function(e){if(t.has(e))throw new Error("${name} already exists");o.has(e)&&requireProfiler().startProfiling(e,!0),t.set(e,{name:e,started:process.hrtime()});var i=r.bind(void 0,e);return{stop:i,while:function(e){return e.then(function(){i()},function(){i()}),e}}},stopTimer:r,ticks:function(){var e=[];return i.forEach(function(r){e.push(r)}),e},tick:function(r){var t=i.get(r);if(!t){var o=Date.now();t=new e(r,o,o)}return t},setProfileList:function(e){o.clear(),e.forEach(function(e){o.add(e)})},disable:function(){var e=Object.freeze({while:function(e){return e},stop:function(){}}),r=Object.create([]);n.startTimer=function(){return e},n.stopTimer=function(){},n.ticks=function(){return r},delete global._perfStarts,delete global._perfTicks}};return n}); //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/b813d12980308015bcd2b3a2f6efa5c810c33ba5/core/vs/base/node/startupTimers.js.map