API enableStats() and disableStats() can be used to open or close stats for performance monitor
Enable Stats
Disable Stats
View Source