[xdebug-dev] [xdebug/xdebug] 6cac5b: Fixed issue 1506: Add garbage collection statistic...

From: Derick Rethans <github[@]derickrethans.nl>
Date: Sun, 31 Dec 2017 06:59:16 -0800

  Branch: refs/heads/pr/360
  Home: https://github.com/xdebug/xdebug
  Commit: 6cac5bd9201e31b580dc9d10b3543b08a9f7cdd4
      https://github.com/xdebug/xdebug/commit/6cac5bd9201e31b580dc9d10b3543b08a9f7cdd4
  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: f300a8337bbcf44cb91754c888451bde5d2aa46a
      https://github.com/xdebug/xdebug/commit/f300a8337bbcf44cb91754c888451bde5d2aa46a
  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: dff8f4973093ab257cc0c0414acd4d854947936b
      https://github.com/xdebug/xdebug/commit/dff8f4973093ab257cc0c0414acd4d854947936b
  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: 6975b78c4352cab10dca91f5ceeffbfa142c7976
      https://github.com/xdebug/xdebug/commit/6975b78c4352cab10dca91f5ceeffbfa142c7976
  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: dcd93e05fb2cb917772c16eb4ed3b4d572187126
      https://github.com/xdebug/xdebug/commit/dcd93e05fb2cb917772c16eb4ed3b4d572187126
  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: 187ffcef27cb429dda890353aeffff4dc708750a
      https://github.com/xdebug/xdebug/commit/187ffcef27cb429dda890353aeffff4dc708750a
  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: 86cc387c947e3aec9151f388c2486a95c9e97b5a
      https://github.com/xdebug/xdebug/commit/86cc387c947e3aec9151f388c2486a95c9e97b5a
  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: 6b2a5bec65f94b9442761d68fd900567b0bc1c0d
      https://github.com/xdebug/xdebug/commit/6b2a5bec65f94b9442761d68fd900567b0bc1c0d
  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/6cac5bd9201e^...6b2a5bec65f9
Received on Sun Dec 31 2017 - 14:59:18 GMT

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