[xdebug-dev] [xdebug/xdebug] 5385de: Fixed issue #1506: Add garbage collection statisti...

From: Derick Rethans <github[@]derickrethans.nl>
Date: Sun, 31 Dec 2017 07:01:05 -0800

  Branch: refs/heads/pr/360
  Home: https://github.com/xdebug/xdebug
  Commit: 5385de949748077f57031c333121fab70300aa03
      https://github.com/xdebug/xdebug/commit/5385de949748077f57031c333121fab70300aa03
  Author: Benjamin Eberlei <kontakt[@]beberlei.de>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M config.m4
    M config.w32
    M php_xdebug.h
    A tests/xdebug_gc_stats1.phpt
    A tests/xdebug_gc_stats2.phpt
    A tests/xdebug_gc_stats3.phpt
    A tests/xdebug_gc_stats4.phpt
    A tests/xdebug_gc_stats5.phpt
    A tests/xdebug_gc_stats6.phpt
    M xdebug.c
    A xdebug_gc_stats.c
    A xdebug_gc_stats.h

  Log Message:
  -----------
  Fixed issue #1506: Add garbage collection statistics feature to Xdebug.

Configuration is done through INI settings:

    xdebug.gc_stats_enable=1 Enables the collection of Garbage collection stats

Or explicitly in PHP code with:

    <?php
    xdebug_start_gcstats();

The output is written to a file baed on INI settings
`xdebug.gc_stats_output_dir` and `xdebug.gc_stats_output_name` or
explicitly as filename given to `xdebug_start_gcstats($filename)`.

    Collected | Efficiency% | Duration | Memory Before | Memory After | Reduction% | Function
    ----------+-------------+----------+---------------+--------------+------------+---------
  10000 | 100.00 % | 0.00 ms | 5539880 | 579880 | 89.53 % | bar
  10000 | 100.00 % | 0.00 ms | 5540040 | 580040 | 89.53 % | Garbage::produce
   4001 | 40.01 % | 0.00 ms | 2563048 | 578968 | 77.41 % | gc_collect_cycles

  Commit: 08a744b3d6a7c9c5d0d9cb1ce85609d7affba478
      https://github.com/xdebug/xdebug/commit/08a744b3d6a7c9c5d0d9cb1ce85609d7affba478
  Author: Benjamin Eberlei <kontakt[@]beberlei.de>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M php_xdebug.h
    A tests/xdebug_gc_stats7.phpt
    M xdebug.c
    M xdebug_gc_stats.c

  Log Message:
  -----------
  Fixed issue #1507: Add functions to access Zend Engine garbage collection metrics

Number of garbage collection runs and total of collected roots metrics
exist in Zend Engine, but are not exposed to userland. These are helpful
to integrate in development to find out scripts that trigger GC.

  Commit: 6c1b61ec8d4711c8dc8ff4a95142c1236a3ae603
      https://github.com/xdebug/xdebug/commit/6c1b61ec8d4711c8dc8ff4a95142c1236a3ae603
  Author: Derick Rethans <github[@]derickrethans.nl>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M xdebug.c

  Log Message:
  -----------
  Remove unused arg info struct

  Commit: f011aba344f6332396ca231140a7d1632928852e
      https://github.com/xdebug/xdebug/commit/f011aba344f6332396ca231140a7d1632928852e
  Author: Derick Rethans <github[@]derickrethans.nl>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M xdebug_gc_stats.c
    M xdebug_gc_stats.h
    M xdebug_stack.c
    M xdebug_stack.h

  Log Message:
  -----------
  Use built-in function for building function names

  Commit: 8717be8f4f124b02cba9f4b8fb44679cab4b890b
      https://github.com/xdebug/xdebug/commit/8717be8f4f124b02cba9f4b8fb44679cab4b890b
  Author: Derick Rethans <github[@]derickrethans.nl>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M xdebug_gc_stats.c

  Log Message:
  -----------
  Remove unused defines

  Commit: 9fae16f1f3787941d9073a7d4247c85443a2285e
      https://github.com/xdebug/xdebug/commit/9fae16f1f3787941d9073a7d4247c85443a2285e
  Author: Derick Rethans <github[@]derickrethans.nl>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M xdebug_gc_stats.c
    M xdebug_gc_stats.h

  Log Message:
  -----------
  Mark as many functions static as possible

  Commit: becc767bb2dc4a84ae75d5b1942d7653662e07bb
      https://github.com/xdebug/xdebug/commit/becc767bb2dc4a84ae75d5b1942d7653662e07bb
  Author: Derick Rethans <github[@]derickrethans.nl>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M xdebug_gc_stats.c
    M xdebug_gc_stats.h

  Log Message:
  -----------
  Don't create and free stack trace that's not being used

  Commit: 76e96fcc5d8670d3d196f403c536f3cf3a455d32
      https://github.com/xdebug/xdebug/commit/76e96fcc5d8670d3d196f403c536f3cf3a455d32
  Author: Derick Rethans <github[@]derickrethans.nl>
  Date: 2017-12-31 (Sun, 31 Dec 2017)

  Changed paths:
    M xdebug_gc_stats.c

  Log Message:
  -----------
  Centralise reduction calculation and make the numbers work

Compare: https://github.com/xdebug/xdebug/compare/6b2a5bec65f9...76e96fcc5d86
Received on Sun Dec 31 2017 - 15:01:10 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:04 BST