Skip to content

Garbage collection#2

Merged
beberlei merged 5 commits intomasterfrom
garbage_collection
Dec 27, 2014
Merged

Garbage collection#2
beberlei merged 5 commits intomasterfrom
garbage_collection

Conversation

@beberlei
Copy link
Copy Markdown
Contributor

@beberlei beberlei commented Dec 2, 2014

Better support to profile affects of garbage collection on performance.

Only tested with PHP 5.6 and hierachical profiling so far.

Todos:

  • Test with all PHP versions
  • Add support for all profiling modes
  • Investigate if timing is possible somehow.

The function to hook into for timing is gc_collect_cycles or its parent gc_zval_possible_root, but they are not pointers and cannot be exchanged.

qafooprofiler.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need TSRMLS_CC in these calls

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably why Travis fails to compile the extension

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! Travis runs with --enable-maintainer-zts, pain in the ass ;)

@stof
Copy link
Copy Markdown
Contributor

stof commented Dec 2, 2014

The test failures are now the same than on master (i.e. 5.3.x are failing the fatal error handling).

@beberlei
Copy link
Copy Markdown
Contributor Author

beberlei commented Dec 2, 2014

@stof Yes, somehow the SKIPIF doesn't work, i didn't investigate further what my mistake is.

@beberlei beberlei merged commit 51eb8dd into master Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants