code: function ngDevModeResetPerfCounters() {
      var newCounters = {
          firstTemplatePass: 0,
          tNode: 0,
          tView: 0,
          rendererCreateTextNode: 0,
          rendererSetText: 0,
          rendererCreateElement: 0,
          rendererAddEventListener: 0,
          rendererSetAttribute: 0,
          rendererRemoveAttribute: 0,
          rendererSetProperty: 0,
          rendererSetClassName: 0,
          rendererAddClass: 0,
          rendererRemoveClass: 0,
          rendererSetStyle: 0,
          rendererRemoveStyle: 0,
          rendererDestroy: 0,
          rendererDestroyNode: 0,
          rendererMoveNode: 0,
          rendererRemoveNode: 0,
      };
      // NOTE: Under Ivy we may have both window & global defined in the Node
      //    environment since ensureDocument() in render3.ts sets global.window.
      if (typeof window != 'undefined') {
          // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
          window['ngDevMode'] = newCounters;
      }
      if (typeof global != 'undefined') {
          // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
          global['ngDevMode'] = newCounters;
      }
      if (typeof self != 'undefined') {
          // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
          self['ngDevMode'] = newCounters;
      }
      return newCounters;
  }
docs: @license
  Copyright Google Inc. All Rights Reserved.
  
  Use of this source code is governed by an MIT-style license that can be
  found in the LICENSE file at https://angular.io/license