refactored perfDebugging. added observer logging.
refactored perfDebugging. added observer logging.