[root@iZ23zhmm6umZ extension]# /app/php7/bin/php -r 'for ($i = 0; $i < 10; $i++) usleep(10000);' &
[21] 4469
[root@iZ23zhmm6umZ extension]# /app/php7/bin/phptrace -p $!
/app/php7/bin/phptrace: Process 4469 not exists: No such process
[21]+ Done /app/php7/bin/php -r 'for ($i = 0; $i < 10; $i++) usleep(10000);'
把时间弄长一点
[root@iZ23zhmm6umZ extension]# /app/php7/bin/php -r 'for ($i = 0; $i < 10; $i++) usleep(1000000);' &
[21] 4593
[root@iZ23zhmm6umZ extension]# /app/php7/bin/phptrace -p $!
process attached
[pid 4593] > usleep(1000000) called at [Command line code:1]
[pid 4593] < usleep(1000000) = NULL called at [Command line code:1] wt: 1.000 ct: 0.000
[pid 4593] > usleep(1000000) called at [Command line code:1]
[pid 4593] < usleep(1000000) = NULL called at [Command line code:1] wt: 1.000 ct: 0.000
[pid 4593] > usleep(1000000) called at [Command line code:1]
[pid 4593] < usleep(1000000) = NULL called at [Command line code:1] wt: 1.000 ct: 0.000
[pid 4593] > usleep(1000000) called at [Command line code:1]
[pid 4593] < usleep(1000000) = NULL called at [Command line code:1] wt: 1.000 ct: 0.000
[pid 4593] > usleep(1000000) called at [Command line code:1]
[pid 4593] < usleep(1000000) = NULL called at [Command line code:1] wt: 1.000 ct: 0.000
[pid 4593] > usleep(1000000) called at [Command line code:1]
[pid 4593] < usleep(1000000) = NULL called at [Command line code:1] wt: 1.000 ct: 0.000