diff --git a/lib/mixins/element-mixin.html b/lib/mixins/element-mixin.html index 73c657ad5f..c75a89c37e 100644 --- a/lib/mixins/element-mixin.html +++ b/lib/mixins/element-mixin.html @@ -683,53 +683,6 @@ return PolymerElement; }); - /** - * Provides basic tracking of element definitions (registrations) and - * instance counts. - * - * @namespace - * @summary Provides basic tracking of element definitions (registrations) and - * instance counts. - */ - Polymer.telemetry = { - /** - * Total number of Polymer element instances created. - * @type {number} - */ - instanceCount: 0, - /** - * Array of Polymer element classes that have been finalized. - * @type {Array} - */ - registrations: [], - /** - * @param {!PolymerElementConstructor} prototype Element prototype to log - * @this {this} - * @private - */ - _regLog: function(prototype) { - console.log('[' + prototype.is + ']: registered'); - }, - /** - * Registers a class prototype for telemetry purposes. - * @param {HTMLElement} prototype Element prototype to register - * @this {this} - * @protected - */ - register: function(prototype) { - this.registrations.push(prototype); - Polymer.log && this._regLog(prototype); - }, - /** - * Logs all elements registered with an `is` to the console. - * @public - * @this {this} - */ - dumpRegistrations: function() { - this.registrations.forEach(this._regLog); - } - }; - /** * When using the ShadyCSS scoping and custom property shim, causes all * shimmed `styles` (via `custom-style`) in the document (and its subtree) diff --git a/lib/utils/boot.html b/lib/utils/boot.html index 3cd64cdf83..4ea0412c7d 100644 --- a/lib/utils/boot.html +++ b/lib/utils/boot.html @@ -61,5 +61,52 @@ }; /* eslint-enable */ + /** + * Provides basic tracking of element definitions (registrations) and + * instance counts. + * + * @namespace + * @summary Provides basic tracking of element definitions (registrations) and + * instance counts. + */ + Polymer.telemetry = { + /** + * Total number of Polymer element instances created. + * @type {number} + */ + instanceCount: 0, + /** + * Array of Polymer element classes that have been finalized. + * @type {Array} + */ + registrations: [], + /** + * @param {!PolymerElementConstructor} prototype Element prototype to log + * @this {this} + * @private + */ + _regLog: function(prototype) { + console.log('[' + prototype.is + ']: registered'); + }, + /** + * Registers a class prototype for telemetry purposes. + * @param {HTMLElement} prototype Element prototype to register + * @this {this} + * @protected + */ + register: function(prototype) { + this.registrations.push(prototype); + Polymer.log && this._regLog(prototype); + }, + /** + * Logs all elements registered with an `is` to the console. + * @public + * @this {this} + */ + dumpRegistrations: function() { + this.registrations.forEach(this._regLog); + } + }; + })();