Deprecated: Assigning the return value of new by reference is deprecated in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-settings.php on line 18

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/wp-db.php on line 306

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/cache.php on line 431

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/http.php on line 61
Joshua Zhu’s Blog » 2009 » August » 20
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/plugin.php on line 339

Archive for August 20, 2009

A Handy Strace Option


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::the_content() should not be called statically in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/plugin.php on line 166

Strict Standards: Non-static method GA_Filter::ga_parse_article_link() should not be called statically in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 440

I didn’t notice the ‘-ff’ option of strace until I came across it today. By turning it on, not only fork(2)s can be followed, but also each process’s trace will be written to tracefile.pid, where pid is the process id of each process. Typical usage might look like this:

# strace -o tracelog.txt -ff -T command

This option can be quite handy, when debugging programs that spawn child processes.

Comments (28)