Added postEventLoop hook to TreeAnalyzer