Bug #73449 [Opn->Spm]: UPGRADING

From: Date: Thu, 03 Nov 2016 06:39:43 +0000
Subject: Bug #73449 [Opn->Spm]: UPGRADING
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205165@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73449&edit=1

 ID:                 73449
 Updated by:         requinix@php.net
 Reported by:        admin at angosso dot net
 Summary:            UPGRADING
-Status:             Open
+Status:             Spam
 Type:               Bug
 Package:            Output Control
 Operating System:   OS_LINUX = 3;
 PHP Version:        7.0.12
 Block user comment: N
 Private report:     N

 New Comment:

Description is a copy/paste from http://php.net/manual/zh/features.dtrace.introduction.php.


Previous Comments:
------------------------------------------------------------------------
[2016-11-03 06:20:35] admin at angosso dot net

Description:
------------
包括 Solaris,Mac OS X,Oracle Linux 和 BSD
在内的很多操作系统 都提供了 DTrace
跟踪调试框架,它永远可用,并且额外消耗极低。
DTrace
可以跟踪操作系统行为和用户程序的执行情况。
它可以显示参数值,也可以用来分析性能问题。
用户可以使用 DTrace D
脚本语言创建脚本文件来监控探针,进而高效分析数据指针。

除非用户使用 DTrace D 脚本激活并监控 PHP
探针,否则它并不会运行,所以不会给正常的应用执行带来任何性能损耗。
即使 PHP
探针被激活,它的消耗也是非常低的,甚至可以直接在生产系统中使用。

Test script:
---------------
# modprobe fasttrap
# chmod 666 /dev/dtrace/helper

Build PHP with the --enable-dtrace configuration parameter:

# ./configure --enable-dtrace ...
# make
# make install
#!/usr/bin/env bash

rm .rbenv-version 2>/dev/null

VERSIONS=$(phpenv versions --bare)
SCRIPT_DIR=$(dirname $0)

for v in $VERSIONS system; do
  echo -n "$v: "
  if ${SCRIPT_DIR}/test-build.sh $v >$v.log 2>&1; then
    echo -e "\033[1;32mPASS\033[0m"
  else
    echo -e "\033[1;31mFAIL\033[0m"
  fi
done



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73449&edit=1


Thread (2 messages)

« previous php.bugs (#205165) next »