public function tearDown() { $elapsed = Timer::stop(); parent::tearDown(); Log::debug("================== Finished, time elapsed: {$elapsed}. =================="); }
protected function getDebugInfo(SwooleServer $server) { return ['service' => 1, 'mem' => round(memory_get_usage() / 1024 / 1024, 2) . 'M', 'worker-id' => $server->worker_id, 'status' => json_encode($server->stats()), 'cost-ms' => Timer::stop() * 1000] + $this->debugData; }