SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Performance Profiling

    Hi

    I have created a PHP site but have noticed the pages seem to be running a bit slow.

    I heard a way to find bottlenecks is to Profile your code, however I am using a shared server and don't have access to the php.ini file so I think this stops me from using Xdebug that many sites recommend.

    Therefore I was wondering if anyone knew good ways to Profile code that doesn't require access to php.ini.

    Thanks

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    microtime()

    Crude, but effective enough.

    There's also the pear Benchmark class which basically uses microtime() but adds some additional glitter.

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Or could move the code to a development server which you control? A development server could be your own local computer too.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



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
  •