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

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

  Branch: refs/heads/GC-fixes-again
  Home: https://github.com/xdebug/xdebug
  Commit: d01bb80e2cf61b580b2112a7a34fbff6179158f5
      https://github.com/xdebug/xdebug/commit/d01bb80e2cf61b580b2112a7a34fbff6179158f5
  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: e3be73ab575791b45c308299ecf15f2dae8af5b9
      https://github.com/xdebug/xdebug/commit/e3be73ab575791b45c308299ecf15f2dae8af5b9
  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: a08f6b111f7a3bf4c5d73429e2406ad50b24e78a
      https://github.com/xdebug/xdebug/commit/a08f6b111f7a3bf4c5d73429e2406ad50b24e78a
  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: df4544c2c5b5df135e648711597c14f09242ca9d
      https://github.com/xdebug/xdebug/commit/df4544c2c5b5df135e648711597c14f09242ca9d
  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: e7b81ae201c579ef0535c2fa416d67a6e75db9ab
      https://github.com/xdebug/xdebug/commit/e7b81ae201c579ef0535c2fa416d67a6e75db9ab
  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: 0c09ebaa3ac3965df9618e4eb64d4ccab0178415
      https://github.com/xdebug/xdebug/commit/0c09ebaa3ac3965df9618e4eb64d4ccab0178415
  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: 02e36441643db2b8a83f795953fd6b5774243034
      https://github.com/xdebug/xdebug/commit/02e36441643db2b8a83f795953fd6b5774243034
  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: 3dcc27008bb3e2542b55917bd2f286ac3f80f382
      https://github.com/xdebug/xdebug/commit/3dcc27008bb3e2542b55917bd2f286ac3f80f382
  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/da922bfa9a1f...3dcc27008bb3
Received on Sun Dec 31 2017 - 15:05:17 GMT

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