概述
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: 使用 SystemTap 监控 PHP DTrace 静态探针 - Manual所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复