Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3344026
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:01:20+00:00 2026-05-18T01:01:20+00:00

Right, since watching Rasmus Lerdorf’s talk on PHP performance I’ve been wanting to profile

  • 0

Right, since watching Rasmus Lerdorf’s talk on PHP performance I’ve been wanting to profile the ERP / Accounting application I am working on, not least because I know there are performance issues with it, profiling should highlight the major problems for me to investigate.

So downloaded xdebug and put the following few lines in my php.ini file:

zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
xdebug.profiler_output_dir="/home/me/xdebug/profiles/"
xdebug.ptofiler_enable_trigger=On

With this I simply aim my browser as my app with &XDEBUG_PROFILE in the query string and the profiling begins. The problem is the output I am viewing with KCacheGrind doesn’t include any of the functions from with my application, and no flow between entities.

When the page is executing I copied (in the terminal) the profile file to a separate file, to capture it’s state throughout the profile. I loaded each of these separately into KCacheGrind and they all show the full profile of the application, all but the last one?

Can anyone tell me why the full profile isn’t being output? Looking at the file sizes of my copied files it appears the first few are rather large, but the last one is significantly smaller, is xdebug messing with them after it has been captured?

Many thanks 🙂

EDIT

Just to help, this is what I see when I open up one of the copied profiles (before the profile has completed), I’m sure there is much more to this.

alt text

And this is what I get from the final profile, no relationships, just a bunch of PHP functions. I want to see all the full profile.

alt text

EDIT 2

So here I am constantly running the ls -als command, the last list is the cut down version, the previous one is the last ls where the file was at it’s full size.

alt text

I cannot upload the large file as it’s over 3 million lines long, if it helps here is the xdebug php info section.

alt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:01:21+00:00Added an answer on May 18, 2026 at 1:01 am

    Right, I’ve actually solved the problem myself, I added this option to my php.ini file:

    xdebug.profiler_append=1
    

    This will append the data to the same filename if it exists, therefore I’ll need to make sure the filename option is set correctly, but I think that has solved my problem for now.

    Thanks to those that answered 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’ve chosen to take this as a question in its own right since it
I'm building UI logging into a long-existing ASP.NET enterprise application. I have my own
So far I've been placing the dll into the /bin folder because it seems
I am using anonymous methods to handle events in a COM object. Once the
I hope that this one is not going to be ask-and-answer question... here goes:
A bit of an odd (challenging?) question. Is it possible to programmatically access the
I’m using latest globalize2 and rails 2.2. I wonder if the following is bug
I dont really get to work with entity beans, but they are staring at
I shall test a date string to see if it is one of these
I have a fixed toolbar at the bottom of my page where users are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.