Permalink
Browse files

Fixed issue #474: Implement memory profiling.

Original implementation likely by Geoff Benson.
  • Loading branch information...
derickr committed Nov 18, 2017
1 parent b851768 commit 926808a6e0204f5835a617caa3581b45f6d82a6c
Showing with 179 additions and 168 deletions.
  1. +3 −3 tests/bug00360.phpt
  2. +7 −7 tests/bug00631.phpt
  3. +21 −21 tests/bug00639.phpt
  4. +14 −14 tests/bug00643.phpt
  5. +11 −11 tests/bug00714.phpt
  6. +8 −8 tests/bug00728-php71.phpt
  7. +7 −7 tests/bug00728.phpt
  8. +37 −37 tests/bug00785-1.phpt
  9. +53 −53 tests/bug00785-2.phpt
  10. +3 −0 xdebug_private.h
  11. +15 −7 xdebug_profiler.c
View
@@ -19,12 +19,12 @@ cmd: %sbug00360.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) %sbug00360.php
fn=(1) func
2 %d
2 %d %d
fl=(2) php:internal
fn=(2) php::xdebug_get_profiler_filename
8 %d
8 %d %d
View
@@ -19,27 +19,27 @@ cmd: %sbug00631.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) php:internal
fn=(1) php::register_shutdown_function
%d %d
%d %d %i
fl=(1)
fn=(2) php::strrev
%d %d
%d %d %i
fl=(2) %sbug00631.php
fn=(3) {main}
summary: %d
summary: %d %i
%d %d
%d %d %i
cfl=(1)
cfn=(1)
calls=1 0 0
%d %d
%d %d %i
cfl=(1)
cfn=(2)
calls=1 0 0
%d %d
%d %d %i
View
@@ -27,84 +27,84 @@ cmd: %sbug00639.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) %sbug00639-2.inc
fn=(1) require::%sbug00639-2.inc
1 %d
1 %d %i
fl=(2) php:internal
fn=(2) php::strrev
4 %d
4 %d %i
fl=(1)
fn=(3) func2
2 %d
2 %d %i
cfl=(2)
cfn=(2)
calls=1 0 0
4 %d
4 %d %i
fl=(2)
fn=(2)
4 %d
4 %d %i
fl=(1)
fn=(3)
2 %d
2 %d %i
cfl=(2)
cfn=(2)
calls=1 0 0
4 %d
4 %d %i
fl=(3) %sbug00639.php
fn=(4) func1
4 %d
4 %d %i
cfl=(1)
cfn=(3)
calls=1 0 0
6 %d
6 %d %i
cfl=(1)
cfn=(3)
calls=1 0 0
7 %d
7 %d %i
fl=(2)
fn=(2)
4 %d
4 %d %i
fl=(1)
fn=(3)
2 %d
2 %d %i
cfl=(2)
cfn=(2)
calls=1 0 0
4 %d
4 %d %i
fl=(2)
fn=(2)
4 %d
4 %d %i
fl=(1)
fn=(3)
2 %d
2 %d %i
cfl=(2)
cfn=(2)
calls=1 0 0
4 %d
4 %d %i
fl=(2)
fn=(2)
4 %d
4 %d %i
fl=(1)
fn=(3)
2 %d
2 %d %i
cfl=(2)
cfn=(2)
calls=1 0 0
4 %d
4 %d %i
fl=(2)
fn=(5) php::xdebug_get_profiler_filename
15 %d
15 %d %i
View
@@ -18,56 +18,56 @@ cmd: %sbug00643.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) %sbug00643-t2.inc
fn=(1) require_once::%sbug00643-t2.inc
1 %d
1 %d %i
fl=(2) %sbug00643-t1.inc
fn=(2) require_once::%sbug00643-t1.inc
1 %d
1 %d %i
cfl=(1)
cfn=(1)
calls=1 0 0
2 %d
2 %d %i
fl=(3) php:internal
fn=(3) php::array_count_values
23 %d
23 %d %i
fl=(3)
fn=(3)
12 %d
12 %d %i
fl=(3)
fn=(4) php::is_array
12 %d
12 %d %i
fl=(1)
fn=(5) errors_fatal
10 %d
10 %d %i
cfl=(3)
cfn=(3)
calls=1 0 0
12 %d
12 %d %i
cfl=(3)
cfn=(4)
calls=1 0 0
12 %d
12 %d %i
fl=(2)
fn=(6) t1
20 %d
20 %d %i
cfl=(3)
cfn=(3)
calls=1 0 0
23 %d
23 %d %i
cfl=(1)
cfn=(5)
calls=1 0 0
23 %d
23 %d %i
fl=(3)
fn=(7) php::xdebug_get_profiler_filename
7 %d
7 %d %i
View
@@ -30,44 +30,44 @@ cmd: %sbug00714.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) php:internal
fn=(1) php::sleep
2 10%d
2 10%d %d
fl=(2) %sbug00714.php
fn=(2) sleep1
2 %d
2 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
2 10%d
2 10%d %d
fl=(1)
fn=(1)
3 10%d
3 10%d %d
fl=(2)
fn=(3) sleep10
3 %d
3 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
3 10%d
3 10%d %d
fl=(1)
fn=(1)
4 2%d
4 2%d %d
fl=(2)
fn=(4) sleep20
4 %d
4 %d %d
cfl=(1)
cfn=(1)
calls=1 0 0
4 2%d
4 2%d %d
fl=(1)
fn=(5) php::xdebug_get_profiler_filename
14 %d
14 %d %d
View
@@ -29,32 +29,32 @@ cmd: %sbug00728-php71.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) php:internal
fn=(1) php::{zend_pass}
10 %d
10 %d %i
fl=(1)
fn=(2) php::var_dump
6 %d
6 %d %i
fl=(2) %sbug00728-php71.php
fn=(3) bankaccount->__call
4 %d
4 %d %i
cfl=(1)
cfn=(2)
calls=1 0 0
6 %d
6 %d %i
fl=(2)
fn=(4) bankaccount->bar
4 %d
4 %d %i
cfl=(2)
cfn=(3)
calls=1 0 0
11 %d
11 %d %i
fl=(1)
fn=(5) php::xdebug_get_profiler_filename
13 %d
13 %d %i
View
@@ -29,28 +29,28 @@ cmd: %sbug00728.php
part: 1
positions: line
events: Time
events: Time Memory
fl=(1) php:internal
fn=(1) php::var_dump
6 %d
6 %d %i
fl=(2) %sbug00728.php
fn=(2) bankaccount->__call
4 %d
4 %d %i
cfl=(1)
cfn=(1)
calls=1 0 0
6 %d
6 %d %i
fl=(2)
fn=(3) bankaccount->bar
%r(11|4)%r %d
%r(11|4)%r %d %i
cfl=(2)
cfn=(2)
calls=1 0 0
11 %d
11 %d %i
fl=(1)
fn=(4) php::xdebug_get_profiler_filename
13 %d
13 %d %i
Oops, something went wrong.

0 comments on commit 926808a

Please sign in to comment.