stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


PHP Performance Profiling with APD







PHP Performance Profiling with APD

PHP Performance Profiling with APD 10/29/2003 12:11 AM

Good article on profiling PHP using APD, the Advanced PHP Debugger. This is a bit of a misnomer, because APD is not a debugger you use to step through your code, but is actually a diagnostic and profiling tool. I mostly use XDebug for profiling, but APD looks like a cool alternative.

And if you are interested in performance tuning, do have a look at ADOdb's database performance monitoring features. The dreadful thing about SQL is that it is an iceberg of complexity hidden in a deceptively simple query language. Bad PHP code can slow your code down by a factor of x2-5 perhaps. But one bad SQL statement can cause a x10-100 times slowdown.

Lastly, if you are using Windows, unless you have the ability and means to compile APD, you're out of luck. This is one area where PECL (which is the official repository for PHP extensions) could improve on.

Update: George (APD's author) mentions that Shane Caraveo has ported APD to Windows, and Will and John add that pre-compiled PECL dll's for Windows are available from here and there. (added 25 Oct 2003).




This is a GrokNews Entry: (what is grok?)





Similar Items

PHP Performance Profiling with APD

Grok Headline matches for PHP Performance Profiling with APD

PHP Performance Profiling


PHP Performance Profiling 10/28/2003 11:08 PM
Techniques for learning where the bottlenecks are in your PHP-based Web application.

LinuxJournal: PHP Performance Profiling


LinuxJournal: PHP Performance Profiling 10/28/2003 11:07 PM
If you've tried out the latest Zend tool, Zend Studio 3.0, you've seen their "profiler" tool. Using this tool, you can profile your scripts and see which are taking the longest, etc. Well, thanks to LinuxJournal, you might not need to purchase that IDE at all.

Profiling PHP's Performance


Profiling PHP's Performance 10/28/2003 11:06 PM
Do you know where bottlenecks are in your PHP applications? This article will help you identify them and take the necessary steps to getting them under control.

SQL Server profiling, monitoring and
tuning: SQL Server Performance Objects
(Part 3)


SQL Server profiling, monitoring and
tuning: SQL Server Performance Objects
(Part 3)
05/21/2004 06:44 PM

Bug profiling


Bug profiling 05/25/2004 02:15 AM
USA Today May 25 2004 6:17AM GMT

Profiling Perl


Profiling Perl 06/24/2004 07:58 PM
How do you know what your Perl programs are spending their time doing? How do you know where to start optimizing slow code? The answer to both these questions is "profiling," and Simon Cozens looks at how it's done.

Profiling network administrators


Profiling network administrators 03/06/2004 02:05 AM
http://www.nwfusion.com/research/2004/0301hackerslamo.html Adrian Lamo, a white hat hacker who pled guilty to accessing The New York Times computers without permission, agreed to share what he knows about some of the common IT security slips network administrators make. Lamo studies journalism at American River College in Sacramento, Calif, as he awaits sentencing next month. VIA Root Secure I was wondering what Adrian was up to. (His emails are bouncing these days because there...

Coverage Measurement and Profiling


Coverage Measurement and Profiling 09/16/2004 05:07 AM
It is easier to optimize correct code, than correct optimized code.--Yves Deville

Report: Profiling up since 9/11
(USATODAY.com)


Report: Profiling up since 9/11
(USATODAY.com)
09/14/2004 05:43 AM
USATODAY.com - Profiling by police is so pervasive that 32 million people in the USA say they have been harassed because of their race, religion, or ethnicity, a human rights group said Monday.

Schlossnagle.org: Profiling PHP
Applications


Schlossnagle.org: Profiling PHP
Applications
09/24/2004 07:42 AM
In addtion to the other slides from the php|works conference, George Schlossnagle has decided to throw his hat into the ring with the latest of his talks - Profiling PHP Applications.

DNA profiling of babies rejected


DNA profiling of babies rejected 03/31/2005 09:23 AM
Proposals for a national scheme to take DNA profiles of every baby born in the UK have been rejected by the government's genetics watchdog.

Valgrind 2.2.0: Memory Debugging and
Profiling


Valgrind 2.2.0: Memory Debugging and
Profiling
12/19/2004 03:17 PM
For tracking down memory leaks and other performance issues, the ease and flexibility of Valgrind may make up for slow runtimes.

Profiling System Takeoff Delayed


Profiling System Takeoff Delayed 12/12/2003 06:48 AM
CAPPS II, the proposed system to profile airline passengers in the United States and weed out potential terrorists, is facing delays thanks to heightened scrutiny and criticism at home and abroad. By Ryan Singel.

UK commission rejects infant DNA
profiling


UK commission rejects infant DNA
profiling
04/01/2005 06:47 AM
'Ethical, legal and social concerns'

Special Registration: Federal Racial
Profiling?


Special Registration: Federal Racial
Profiling?
03/19/2003 10:27 PM
Muslim men have been asked to undergo "Special Registration", a Department of Homeland Security program in its early stages. Men who hail from 25 targeted countries are required to be fingerprinted, photographed, give up credit card and bank account numbers, and are then given a registration number. So far, 46 people have been arrested, but none for terrorist-related activities. Is this an acceptable security precaution or the first sign of history repeating itself?

JProbe Profiler: The perfect profiling
tool?


JProbe Profiler: The perfect profiling
tool?
03/13/2003 02:27 AM
CNET Mar 13 2003 1:23AM ET

Computer Profiling Identified 120,000
Potential Terrorists


Computer Profiling Identified 120,000
Potential Terrorists
05/20/2004 04:14 PM
Insight Magazine May 20 2004 8:11PM GMT

New Passenger Profiling System To Be
Tested (Los Angeles Times)


New Passenger Profiling System To Be
Tested (Los Angeles Times)
08/27/2004 01:23 PM
Los Angeles Times - WASHINGTON — In a concession to privacy advocates, the government on Thursday announced plans for a computerized profiling system for air travelers that would be less intrusive than previously envisioned.

SpamElimination.com, Releases Next
Generation Spam Profiling System.


SpamElimination.com, Releases Next
Generation Spam Profiling System.
07/02/2004 03:16 AM
SpamElimination.com introduces e-mail profiling system that virtually eliminates all spam, viruses and malware. [PRWEB Jul 2, 2004]

SQL Server profiling, monitoring and
tuning: System Monitor (Part 4)


SQL Server profiling, monitoring and
tuning: System Monitor (Part 4)
05/26/2004 10:38 AM

PR: Zend Brings Performance Management
to PHP With New Zend Performance Suite


PR: Zend Brings Performance Management
to PHP With New Zend Performance Suite
11/03/2002 08:19 AM
Product Enables PHP-enabled Enterprises To Achieve Dramatic Server Performance Improvement and Decrease Total Cost of Ownership

SQL Server profiling, monitoring and
tuning: Choosing the right monitoring
tool … (Part 2)


SQL Server profiling, monitoring and
tuning: Choosing the right monitoring
tool … (Part 2)
07/14/2004 10:04 AM

Performance PCs


Performance PCs 12/31/2004 02:03 AM
PC Authority Dec 31 2004 6:44AM GMT

64-bit vs 32-bit AMD Performance


64-bit vs 32-bit AMD Performance 04/28/2004 05:52 AM

Getting Disk Performance


Getting Disk Performance 09/23/2004 05:52 PM

Dancing performance


Dancing performance 04/27/2004 03:54 PM
I got a dance mat for my PS2 as a birthday present. So far, I've nearly twisted my ankle, and banged my head against the lamp.

But it's actually loads of fun: you get to feel again like a complete klutz when you can't do even simple transfers of your bodily weight. Kinda like when I first started martial arts. You also feel completely stupid because you can't recover from a simple mistake after missing rhythm. And also, you sweat like a pig after 30 minutes on it. Though frankly, I don't know whether pigs really sweat that much.

And in fact, the whole thing has rather little to do with dancing. Perhaps, with more practice, it might be possible to develop a knack for "improvisation in a confined space", but so far it feels more like an exercise routine. A pre-programmed performance, so to say.

But I ain't complaining. I can't dance (any teachers around?), but this sure is quite fun ;)


POWER5 Performance Brief


POWER5 Performance Brief 08/02/2004 03:46 PM

Naming for Performance


Naming for Performance 01/16/2004 01:02 PM

One of the not often discussed cause of slow performance is careless naming.

When you are naming a method that does more than get or set some value, try to avoid a name that might mislead the caller into calling it multiple times instead of saving it to a local variable.  For example, if a method is named GetTopicName, the caller is not going to expect it to search for the value and instantiate many objects in the course of doing so.  Instead use a name that implies and warns the caller about the cost of the method, like FindTopicName or CalcPrime.

When using a language that supports properties like C#, try not to turn heavy methods into properties.  Property getters and setters should be light operations.  If you have to, then try to precalculate the value and update on change via event handlers.  Failing that, try to warn the developer using documentation so the developer can use the property accordingly.

One caveat: Guidelines are not meant to be straightjackets.  Don't do it if you can't do it.


New performance targets for NHS


New performance targets for NHS 02/10/2004 09:00 AM
New NHS performance targets emphasising quality of patient care are to be introduced from April 2005.

Battlefield 2 - GPU Performance


Battlefield 2 - GPU Performance 06/17/2005 03:45 PM

Performance Anxiety


Performance Anxiety 06/17/2005 03:56 PM
Link: Seed of extinct date palm sprouts after 2,000 years. The Judean date is chronicled in the Bible, Quran and ancient literature for its diverse powers -- from an aphrodisiac to a contraceptive -- and as a cure for a...

The Performance Paradox


The Performance Paradox 04/11/2005 06:11 AM
If you deliver, you only qualify to deliver more. So how can we possibly get off the treadmill?

Other News: Mac OS X Performance


Other News: Mac OS X Performance 06/04/2004 10:56 AM
Kernelthread analyzes 10 Mac OS X performance optimizations.

Q&A: Performance + Art from Microsoft


Q&A: Performance + Art from Microsoft 07/08/2004 03:37 PM
Today marks the debut of a collection of trendsetting new input devices from Microsoft, including a new mouse conceived by Philippe Starck - an interior and industrial designer and architect known worldwide for bringing cutting-edge design to everyday products. Starck's award-winning work centers around a core philosophy focused on delivering extraordinary design in everyday objects. This vision has changed the way people perceive their juicer, hotel room, toothbrush, chair and even tape dispenser.

Performance Co-Pilot 2.4.0-1


Performance Co-Pilot 2.4.0-1 08/12/2004 11:43 PM
performance monitoring toolkit and API

Web Performance Trainer 2.6 FCS


Web Performance Trainer 2.6 FCS 11/06/2003 07:21 PM
A load testing and stress testing tool for Web servers.

Seeing Hutton's last performance


Seeing Hutton's last performance 01/28/2004 12:29 PM
BBC News Online's Brian Wheeler was in Court 73 to witness Lord Hutton's statement.

Eclipse performance.


Eclipse performance. 03/12/2003 10:29 AM
eclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M 

-XX:MaxNewSize=32M -XX:NewSize=32M -Xmx96m -Xms96m
Sosume applies some new GC configuration settings, written about in JavaWorld and recommended for Netbeans to improve Eclipse performance in his post: Improving Eclipse performance by using vm arguments. I'm trying these settings myself now, but with -Xmx256m.

Pagefile Performance


Pagefile Performance 09/13/2004 06:03 PM

Grok Description matches for PHP Performance Profiling with APD
GrokA matches for PHP Performance Profiling with APD

PHP Performance Profiling with APD

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Is Pharrot That
Fast?

Living La Vida
Longhorn

Microsoft Tweaks
Problematic Security
Patch

W3C to Broaden
Footstep in China

Amid PDC Buzz, IBM
Unleashes Stinger

Microsoft's Jewels
Ready for a Close-Up

Gates To Kick Off
PDC With Longhorn
Overview

Gates Opens Windows'
Next Wave

LogicLibrary
Launches New .NET
Directory

Helping .NET
Developers Diagnose
Web Services

The Next Linux
Cometh

Upgrade Could Lead
Apple To Bigger Bite
Of Market

ActiveWin.com Book
of the Day: Inside
Intuit: How the
Makers of Quicken
Beat Microsoft and
Revolutionized an
Entire Industry

Web whispers about
Microsoft voice plan

Microsoft buys more
land in Issaquah;
mum on plans

Microsoft Expands
Mobile Opportunities
for Windows
Developers

Developer
Productivity Takes
Center Stage in
Future Versions of
Microsoft Visual
Studio and SQL
Server

'Yukon' Sneak Peek:
Next Generation of
Microsoft SQL Server
to Strengthen
Developer
Productivity

Resource Tool Kit
for Microsoft
Identity Integration
Server 2003

Visual C++ .NET 2003
Code Samples

Notes from PDC 2003
Plug-ins Getting
Unplugged from IE

Dynamic Web Menu
System Requirements

Cheeky Girls
Wandering party
lines

Straining pollution
from the air

Trademarking
integrity

Less talk, more
action.

Viewpoint Routers
Cooperative,
distributed
reporting

Add this SMTP server
to your contact
list?

Can the paparazzi
survive in a world
of DRM?

Configuring Sendmail
on OS X to use an
SSH tunneled
smarthost

Six Degrees of Dean
Withering spheres of
privacy

Lessons learned from
online journals

Driving away
customers with
inefficiency.

A thousand monkeys
filtering
advertising

Why I'm an Acolyte
of the Cult of Dean

View from the
Trenches:
Alternative Package
Sources

A Historic Moment in
Boston

WorldWatch Week in
Review

An Easy Way to Avoid
Spam

The Art of Rewriting
Old Games

Using the Hammerfall
HDSP on Linux

Role-Based Access
Control: A Book
Review

CrossOver Office
Server Edition

A Comparison of
Snort Books

Tomato Progress
Checking Code
Ownership

what is grok?