Add performance counting in parser generation process