[xdebug-general] No user funcs profiled w/ xdebug_dump_function_profile()

From: Sam Keen <sam.sjk[@]gmail.com>
Date: Sun, 2 Oct 2005 14:37:45 -0700

if I run this script below I get the expected output as shown below.
But if I run it more than once I loose all the user functions in the
profiling dump?? If I restart apache, they are back for 1 or 2 runs??
I cheched the apache error log on there is no error.

I am on a g4 powerbook running osx 10.4
with apache 1.3 and php 5.0.4 (Marc Liyanage
build)[http://www.entropy.ch/software/macosx/php/] and xdebug 1.3.2

Any help is welcome. Let me know if you need anymore details

Thanks in advance.
Sam Keen

Script I'm testing with...
<?php
xdebug_start_profiling();

function addTen($value) {
    return $value + 10;
}

$x = apache_get_modules();

print addTen(5);

xdebug_dump_function_profile();

?>

if I restart apache and run, I get the expected output...

15
Execution Time Profile (sorted by line numbers)
Time Taken Number of Calls Function Name Location
0.0002400875 1 apache_get_modules() /Users/sam/Sites/pdxphp_meetings/Oct2005/xdebug_profile_01.php:8
0.0000369549 1 *addTen() /Users/sam/Sites/pdxphp_meetings/Oct2005/xdebug_profile_01.php:10
Opcode Compiling 0.0032789707
Function Execution 0.0002770424
Ambient Code Execution 0.0003590584
Total Execution 0.0006361008
Total Processing 0.0039150715

after a refresh (or 2 sometimes), I loose all the user functions...

15
Execution Time Profile (sorted by line numbers)
Time Taken Number of Calls Function Name Location
0.0000951290 1 apache_get_modules() /Users/sam/Sites/pdxphp_meetings/Oct2005/xdebug_profile_01.php:8
Opcode Compiling 0.0022590160
Function Execution 0.0000000000
Ambient Code Execution 2.2660610676
Total Execution 2.2660610676
Total Processing 2.2683200836
Received on Sun Oct 02 2005 - 23:37:49 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST