SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to outline my code

    I need to track the logic of my code.

    I'm currently adding a diagnostic variable to my script that only runs in diagnostic mode. It collects all the logic that's triggered by each run. It's very time consuming to manually add this diagnostic feature to my script. Is there an automated tool that's available to do that?

  2. #2
    Non-Member
    Join Date
    Oct 2007
    Posts
    363
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,129
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Yep, xdebug is great for this scenario, you can invoke the profiler and it will show you every function that was called, how long it took to run that function, how many times it was executed, etc, etc, etc. I've used it plenty of times just to find bottlenecks and to see what functions could likely use some TLC because they are taking too long.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •