$start_memory = memory_get_usage();
// 执行一些代码
$end_memory = memory_get_usage();
$used_memory = $end_memory - $start_memory;
echo "内存消耗: " . $used_memory . " 字节";
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-