Count Number of Queries Each Page Load with PDO

前端 未结 2 1222
误落风尘
误落风尘 2021-02-09 09:45

I\'m specifically looking to extend the PDO object somehow to add an internal counter every time a query is executed. I want to do this in a way were I wouldn\'t h

2条回答
  •  情书的邮戳
    2021-02-09 10:25

    Just execute:

    SHOW PROFILES;
    

    The greatest Query ID is what you are after. This will also give you information about the last 15 (default) query execution time.

提交回复
热议问题