code: function (name /*:String*/, recurse /*:Boolean*/) /*:Void*/{
          
              //get the object
              if (lang.isObject(container[name])){            
                  var object = container[name];    
              
                  for (var prop in object) {
                      if (typeof object[prop] == "function"){
                          this.unregisterFunction(name + "." + prop);
                      } else if (typeof object[prop] == "object" && recurse){
                          this.unregisterObject(name + "." + prop, recurse);
                      }
                  }
                  
                  delete container[name];
              }
          
          }
docs: Unregisters an object for profiling. It takes the object and looks for functions.
  When a function is found, unregisterMethod() is called on it. If set to recrusive
  mode, it will also unregister objects found inside of this object,
  using the same methodology.
  @param {String} name The name of the object to unregister.
  @param {Boolean} recurse (Optional) Determines if subobject methods should also be
  unregistered.
  @return {Void}
  @method unregisterObject
  @static