How to track number of mysql queries runs per script run

Discussion in 'PHP' started by deriklogov, Nov 17, 2009.

  1. #1
    Hey,

    Need help to find out how many times php script accessing mysql database during executing. Like script has so many functions inside which are using mysql database, so what I would like to find out when you run the script how many mysql queries does it execute.
     
    deriklogov, Nov 17, 2009 IP
  2. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #2
    easiest way I found is to add
    write to file increment by 1
    but its very funny because you should go all over all scripts to add that line where mysql query present,

    any other options ?
     
    deriklogov, Nov 17, 2009 IP