我是靠谱客的博主 儒雅柚子,这篇文章主要介绍探针php代码,PHP: 使用 SystemTap 监控 PHP DTrace 静态探针 - Manual,现在分享给大家,希望可以做个参考。

probe process("sapi/cli/php").provider("php").mark("compile__file__entry") {

printf("Probe compile__file__entryn");

printf(" compile_file %sn", user_string($arg1));

printf(" compile_file_translated %sn", user_string($arg2));

}

probe process("sapi/cli/php").provider("php").mark("compile__file__return") {

printf("Probe compile__file__returnn");

printf(" compile_file %sn", user_string($arg1));

printf(" compile_file_translated %sn", user_string($arg2));

}

probe process("sapi/cli/php").provider("php").mark("error") {

printf("Probe errorn");

printf(" errormsg %sn", user_string($arg1));

printf(" request_file %sn", user_string($arg2));

printf(" lineno %dn", $arg3);

}

probe process("sapi/cli/php").provider("php").mark("exception__caught") {

printf("Probe exception__caughtn");

printf(" classname %sn", user_string($arg1));

}

probe process("sapi/cli/php").provider("php").mark("exception__thrown") {

printf("Probe exception__thrownn");

printf(" classname %sn", user_string($arg1));

}

probe process("sapi/cli/php").provider("php").mark("execute__entry") {

printf("Probe execute__entryn");

printf(" request_file %sn", user_string($arg1));

printf(" lineno %dn", $arg2);

}

probe process("sapi/cli/php").provider("php").mark("execute__return") {

printf("Probe execute__returnn");

printf(" request_file %sn", user_string($arg1));

printf(" lineno %dn", $arg2);

}

probe process("sapi/cli/php").provider("php").mark("function__entry") {

printf("Probe function__entryn");

printf(" function_name %sn", user_string($arg1));

printf(" request_file %sn", user_string($arg2));

printf(" lineno %dn", $arg3);

printf(" classname %sn", user_string($arg4));

printf(" scope %sn", user_string($arg5));

}

probe process("sapi/cli/php").provider("php").mark("function__return") {

printf("Probe function__return: %sn", user_string($arg1));

printf(" function_name %sn", user_string($arg1));

printf(" request_file %sn", user_string($arg2));

printf(" lineno %dn", $arg3);

printf(" classname %sn", user_string($arg4));

printf(" scope %sn", user_string($arg5));

}

probe process("sapi/cli/php").provider("php").mark("request__shutdown") {

printf("Probe request__shutdownn");

printf(" file %sn", user_string($arg1));

printf(" request_uri %sn", user_string($arg2));

printf(" request_method %sn", user_string($arg3));

}

probe process("sapi/cli/php").provider("php").mark("request__startup") {

printf("Probe request__startupn");

printf(" file %sn", user_string($arg1));

printf(" request_uri %sn", user_string($arg2));

printf(" request_method %sn", user_string($arg3));

}

最后

以上就是儒雅柚子最近收集整理的关于探针php代码,PHP: 使用 SystemTap 监控 PHP DTrace 静态探针 - Manual的全部内容,更多相关探针php代码,PHP:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(116)

评论列表共有 0 条评论

立即
投稿
返回
顶部