protected function execute(InputInterface $input, OutputInterface $output) { $this->ensureExtensionLoaded('apc'); $sma = $this->getCacheTool()->apc_sma_info(true); $output->writeln(sprintf("<comment>Segments: <info>%s</info></comment>", $sma['num_seg'])); $output->writeln(sprintf("<comment>Segment size: <info>%s</info></comment>", Formatter::bytes($sma['seg_size']))); $output->writeln(sprintf("<comment>Available memory: <info>%s</info></comment>", Formatter::bytes($sma['avail_mem']))); }