getUseMem() public static method

统计从开始到统计时的内存使用情况
public static getUseMem ( integer | string $dec = 2 ) : string
$dec integer | string 小数位
return string
Beispiel #1
0
 /**
  * @covers think\Debug::getUseMem
  * @todo Implement testGetUseMem().
  */
 public function testGetUseMem()
 {
     $useMem = \think\Debug::getUseMem();
     $this->assertLessThan(13, explode(" ", $useMem)[0]);
 }