php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57425 Xdebug2 doesn't show memory (or memory delta)
Submitted: 2006-12-11 05:49 UTC Modified: 2007-07-13 10:27 UTC
From: jagermeistermeister at gmail dot com Assigned:
Status: Not a bug Package: Xdebug (PECL)
PHP Version: 5.2.0 RC4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jagermeistermeister at gmail dot com
New email:
PHP Version: OS:

 

 [2006-12-11 05:49 UTC] jagermeistermeister at gmail dot com
Description:
------------
I'm using Xdebug Version: 2.0.0RC1
PHP Version 5.2.0 (I couldn't select that one from the PHP Version dropdown for some reason, so not 5.2.0 RC4)

Xdebug doesn't show correct memory in trace file (maybe this has something to do with the new memory management of PHP 5.2.0?)

Reproduce code:
---------------
I'm running PHP from command line

php -e -c "PHP_PATH/php.ini" -d error_reporting="E_ALL | E_STRICT" -d zend_extension_ts="PATH/TO/php_xdebug-2.0.0rc1-5.2.0.dll" -d xdebug.auto_trace=1 -d xdebug.trace_output_dir="SOME_PATH\tmp\trace" -d xdebug.show_mem_delta=1 -d xdebug.trace_format=0 some_script.php

Expected result:
----------------
I expected to see a different number where it says "0" (memory usage) and "+0" (memory delta). These numbers are the same troughout the script. It's not very likely a script doesn't use any memory ;-)

Actual result:
--------------
These are the first 10 lines from the trace file:

TRACE START [2006-12-11 10:41:26]
    0.0008          0       +0   -> {main}() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:0
    0.0010          0       +0     -> test_function() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:25
    0.0011          0       +0       -> trim() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:8
    0.0012          0       +0       -> round() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:8
    0.0013          0       +0     -> TestClass->__construct() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:26
    0.0016          0       +0     -> TestClass->DoSomething() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:27
    0.0016          0       +0       -> rand() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:19
    0.0017          0       +0       -> array_flip() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:20
    0.0018          0       +0     -> test_function() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:25
    0.0018          0       +0       -> trim() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:8


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-13 08:04 UTC] derick@php.net
This is the wrong place for Xdebug bug reports, please go to http://bugs.xdebug.org. (Your issue might already be fixed, so please try the latest version (from CVS) first).
 [2007-07-13 10:27 UTC] jagermeistermeister at gmail dot com
Hi Derick,

I also posted this bug on the xdebug website when I made this posting. The bug is already resolved.

For the record:
See:
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000226
(you need to login, though)
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 06:01:23 2020 UTC