code: function detachProfiling( scope ) {
     delete axProfiling.items[ scope.$id ];
     Object.keys( axProfiling.widgetIdToScopeId ).forEach( widgetId => {
        if( axProfiling.widgetIdToScopeId[ widgetId ] === scope.$id ) {
           delete axProfiling.widgetIdToScopeId[ widgetId ];
        }
     } );
  }
docs: ////////////////////////////////////////////////////////////////////////////////////////////////////////////