Skip to content

Be more specific about the XHProf sampling type#1436

Merged
ondrejmirtes merged 1 commit intophpstan:1.7.xfrom
johnbillion:xhprof_sample_disable
Jun 17, 2022
Merged

Be more specific about the XHProf sampling type#1436
ondrejmirtes merged 1 commit intophpstan:1.7.xfrom
johnbillion:xhprof_sample_disable

Conversation

@johnbillion
Copy link
Copy Markdown
Contributor

The xhprof_sample_disable() function returns an array of call stack strings keyed by a string representation of the float time of the sample.

Example:

array(176) {
  ["1655478412.290000"]=>
  string(139) "main()==>require_once::wordpress/wp-settings.php==>require::wp-includes/default-filters.php==>add_action==>add_filter==>WP_Hook::add_filter"
  ["1655478412.295000"]=>
  string(48) "main()==>require_once::wordpress/wp-settings.php"
  ["1655478412.300000"]=>
  string(48) "main()==>require_once::wordpress/wp-settings.php"
}

@ondrejmirtes ondrejmirtes force-pushed the xhprof_sample_disable branch from f16d9ce to ff65b31 Compare June 17, 2022 21:09
@ondrejmirtes ondrejmirtes merged commit 1962fc7 into phpstan:1.7.x Jun 17, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

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