Re: Performance problem 100% CPU
I have been doing some debugging. I have modified plugin.php to record how much time takes (using microtime) to execute every do_action() call.
Look at the results following, it doesn’t look like a code performance problem of any plugin, or at least, it doesn’t happen every time.
muplugins_loaded: 1.2E-5,
plugins_loaded,
_auth_cookie_malformed: 1.5E-5,
_auth_cookie_valid: 1.4E-5,
_set_current_user: 0.000413,
_xprofile_setup_globals: 1.4E-5,
_bp_core_setup_globals: 1.4E-5,
_bp_activity_setup_globals: 1.2E-5,
_bp_blogs_setup_globals: 1.3E-5,
_bp_forums_setup: 1.4E-5,
_friends_setup_globals: 1.3E-5,
_groups_setup_globals: 1.4E-5,
_messages_setup_globals: 1.4E-5,
_bp_wire_setup_globals: 1.3E-5,
_xprofile_setup_globals: 1.3E-5,
_bp_status_setup_globals: 1.3E-5,
_events_setup_globals: 1.7E-5,
_bp_activity_setup_nav: 1.8E-5,
_bp_blogs_setup_nav: 1.9E-5,
_bp_blogs_register_activity_actions: 1.7E-5,
_friends_register_activity_actions: 1.7E-5,
_groups_setup_nav: 1.8E-5,
_groups_register_activity_actions: 1.6E-5,
_messages_setup_nav: 1.7E-5,
_bp_wire_setup_nav: 1.6E-5,
_xprofile_setup_nav: 1.7E-5,
_xprofile_register_activity_actions: 1.6E-5,
_bp_status_register_activity_actions: 1.6E-5,
_events_setup_nav: 1.8E-5
: -0.674134,
sanitize_comment_cookies: 0.000702,
setup_theme: 6.4E-5,
init,
_widgets_init: 0.013721,
_wp_ajax_: 2.3E-5
: 0.137118,
posts_selection: 2.0E-5,
friends_setup_nav: 2.20000000001E-5,
xprofile_screen_display_profile: 3.99999999999E-5,
template_redirect,
_switch_blog: 2.3E-5,
_switch_blog: 2.0E-5
: 0.00442,
get_header: 2.89999999999E-5,
wp_head,
_wp_enqueue_scripts: 0.002232,
_wp_print_styles: 0.001407,
_wp_print_scripts: 0.000719,
_wp_print_scripts: 0.000699,
_wp_print_scripts: 0.000655,
_signup_header: 5.5E-5,
_wp_print_styles: 0.001295,
_wp_print_styles: 0.001268
: 0.0585,
posts_selection: 2.49999999999E-5,
posts_selection: 3.1E-5,
get_sidebar: 3.6E-5,
get_footer: 3.0E-5,
wp_footer,
_bp_adminbar_logo: 0.000711,
_bp_adminbar_menus,
__switch_blog: 3.29999999999E-5,
__switch_blog: 3.30000000001E-5,
__bp_adminbar_random_menu: 3.00000000001E-5
_: 0.031586,
_wp_print_footer_scripts: 2.6E-5
: 0.068475