Programmatically access performance data in Cocos creator

How do we obtain the debug data Cocos prints on screen programmatically?

image

cc.profiler._stats
The debug data is included here.