src/Leevel/Protocol/Process/Status.php
public function status(IServer $server): void
    {
        // see https://wiki.swoole.com/wiki/page/288.html
        $result = $server->stats();

        $this->log('Item  Value');

        foreach ($result as $key => $val) {
            if ('start_time' === $key) {
                $val = date('Y-m-d H:i:s', $val);
            }

            $this->log(sprintf('%s %s', $key, $val));
        }
    }
public function status(IServer $server): void
    {
        // see https://wiki.swoole.com/wiki/page/288.html
        $result = $server->stats();

        $this->log('Item  Value');

        foreach ($result as $key => $val) {
            if ('start_time' === $key) {
                $val = date('Y-m-d H:i:s', $val);
            }

            $this->log(sprintf('%s %s', $key, $val));
        }
    }
查看当前服务状态.

@param \Leevel\Protocol\IServer $server