improved debug module profile panel

Improved debug module profile panel. This issue is also related with this one - #1668.
@qiangxue could you tell me what is the value of ```$timings[0]``` that is used in ```str_repeat()```, am i correct that this is profile level? If so, then maybe we should add this field to the gridvew to let people sort/filter by it.