Analyze Software

Discussion in 'PHP' started by deriklogov, Jul 3, 2009.

  1. #1
    Hey,

    I was wondering is that exist or maybe someone saw it.

    Like I am looking for software which could be run parralel to the script and could show slowest part of the script, like in which points it takes most of the time to run script (like scripts weak points).

    I know my old method taking 2 variables and count time at the start and at the end and then move pointer thru the script to find time of running some of the parts but this process takes huge amount of time, so need some software

    Any help would be appreciated
     
    deriklogov, Jul 3, 2009 IP
  2. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #2
    I use DBG and Xdebug for PHP. :D
     
    Social.Network, Jul 3, 2009 IP
  3. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #3
    can you provide links to those 2 ? any cpanel friendly ? or something that I dont need to setup thru ssh
     
    deriklogov, Jul 3, 2009 IP
  4. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #4
    Social.Network, Jul 3, 2009 IP
  5. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #5
    How to install DBG if my zend extension already taken by another software ?
     
    deriklogov, Jul 3, 2009 IP
  6. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #6
    TO: Social.Network

    How did u install DBG ? after changing php file I can not start apache (reboot server doesnt help)
     
    deriklogov, Jul 4, 2009 IP
  7. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #7
    Did you follow the DBG Installation instructions? Also, which file did you change?
     
    Social.Network, Jul 4, 2009 IP
  8. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #8
    Yes, I did , I change php.ini
     
    deriklogov, Jul 4, 2009 IP
  9. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #9
    Does that debugger makes a heavy load on server ? my server already very loaded so maybe when I am running it with debugger it just gets stuck
     
    deriklogov, Jul 4, 2009 IP
  10. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #10
    I never run debuggers or profilers in a production environment, because the tools do create a load on the server.

    All debug and profile work I do is in a local DEV or TEST environment. I would consider remote profiling as needed.
     
    Social.Network, Jul 5, 2009 IP