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

From: Derick Rethans <github[@]derickrethans.nl>
Date: Sun, 31 Dec 2017 08:18:49 -0800

  Branch: refs/heads/master
  Home: https://github.com/xdebug/xdebug
  Commit: ef4ffb1589ca2a1cb2b448b3583c1571b9918807
      https://github.com/xdebug/xdebug/commit/ef4ffb1589ca2a1cb2b448b3583c1571b9918807
  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
    A tests/xdebug_gc_stats8.phpt
    M xdebug.c
    A xdebug_gc_stats.c
    A xdebug_gc_stats.h
    M xdebug_stack.c
    M xdebug_stack.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: 506ebad617aca400345bae53293f5ff43c25da7b
      https://github.com/xdebug/xdebug/commit/506ebad617aca400345bae53293f5ff43c25da7b
  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: adefecb3bec88c27fe259a2ac2dc476772f90cad
      https://github.com/xdebug/xdebug/commit/adefecb3bec88c27fe259a2ac2dc476772f90cad
  Author: Derick Rethans <github[@]derickrethans.nl>
  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
    A tests/xdebug_gc_stats7.phpt
    A tests/xdebug_gc_stats8.phpt
    M xdebug.c
    A xdebug_gc_stats.c
    A xdebug_gc_stats.h
    M xdebug_stack.c
    M xdebug_stack.h

  Log Message:
  -----------
  Merged pull request #360

Compare: https://github.com/xdebug/xdebug/compare/d6dd7dd4f36f...adefecb3bec8
Received on Sun Dec 31 2017 - 16:18:51 GMT

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