1diff --git a/js/ui/environment.js b/js/ui/environment.js 2index 0c291b0a20..3fd6e9b7b8 100644 3--- a/js/ui/environment.js 4+++ b/js/ui/environment.js 5@@ -190,6 +190,16 @@ function init() { 6 7 window.log = _loggingFunc; 8 9+ window._preTime = undefined;10+ window.lastTime = function () {11+ let now = new Date();12+ if (window._preTime === undefined)13+ window._preTime = now;14+15+ print("timestamp at", (new Error().stack.split('\n')[1]), now.getTime(), `+${(now - window._preTime)}ms`);16+ window._preTime = now;17+ }18+19 window._ = Gettext.gettext;20 window.C_ = Gettext.pgettext;21 window.ngettext = Gettext.ngettext;22diff --git a/js/ui/status/network.js b/js/ui/status/network.js23index 7cff22c6e6..07bfbc7bb8 10064424--- a/js/ui/status/network.js25+++ b/js/ui/status/network.js26@@ -87,7 +87,7 @@ var NMConnectionItem = class {27 this._activeConnectionChangedId = 0;28 29 this._buildUI();30- this._sync();31+ this._sync(); print("Creating menu item for connection, ", connection.get_id())32 }33 34 _buildUI() {35@@ -1611,11 +1611,11 @@ var NMApplet = class extends PanelMenu.SystemIndicator {36 this._ctypes[NM.SETTING_GSM_SETTING_NAME] = NMConnectionCategory.WWAN;37 this._ctypes[NM.SETTING_VPN_SETTING_NAME] = NMConnectionCategory.VPN;38 39- NM.Client.new_async(null, this._clientGot.bind(this));40+ NM.Client.new_async(null, this._clientGot.bind(this)); lastTime();41 }42 43 _clientGot(obj, result) {44- this._client = NM.Client.new_finish(result);45+ this._client = NM.Client.new_finish(result); lastTime();46 47 this._activeConnections = [];48 this._connections = [];49@@ -1638,16 +1638,16 @@ var NMApplet = class extends PanelMenu.SystemIndicator {50 this.menu.addMenuItem(this._devices[category]);51 }52 53- this._vpnSection = new NMVpnSection(this._client);54+ this._vpnSection = new NMVpnSection(this._client); lastTime();55 this._vpnSection.connect('activation-failed', this._onActivationFailed.bind(this));56 this._vpnSection.connect('icon-changed', this._updateIcon.bind(this));57- this.menu.addMenuItem(this._vpnSection.item);58+ this.menu.addMenuItem(this._vpnSection.item); lastTime();59 60- this._readConnections();61- this._readDevices();62- this._syncNMState();63- this._syncMainConnection();64- this._syncVpnConnections();65+ this._readConnections(); lastTime();66+ this._readDevices(); lastTime();67+ this._syncNMState(); lastTime();68+ this._syncMainConnection(); lastTime();69+ this._syncVpnConnections(); lastTime();70 71 this._client.connect('notify::nm-running', this._syncNMState.bind(this));72 this._client.connect('notify::networking-enabled', this._syncNMState.bind(this));73@@ -1662,7 +1662,7 @@ var NMApplet = class extends PanelMenu.SystemIndicator {74 this._client.connect('connection-removed', this._connectionRemoved.bind(this));75 76 Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));77- this._sessionUpdated();78+ this._sessionUpdated(); lastTime();79 }80 81 _sessionUpdated() {82@@ -1885,8 +1885,8 @@ var NMApplet = class extends PanelMenu.SystemIndicator {83 }84 85 _readConnections() {86- let connections = this._client.get_connections();87- connections.forEach(this._addConnection.bind(this));88+ let connections = this._client.get_connections(); lastTime();89+ connections.forEach(this._addConnection.bind(this)); lastTime()90 }91 92 _connectionAdded(client, connection) {