SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: How to outline my code

  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    405
    Mentioned
    0 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
    SitePoint Addict
    Join Date
    Oct 2007
    Posts
    297
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    Hosting Advisor silver trophybronze trophy
    SitePoint Award Recipient cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    2,794
    Mentioned
    44 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
  •