0
A
回答
1
// how much memory are you using before building your array
$baseMemory = memory_get_usage(false);
// create your array
$a = array('A',1,'B',2);
// how much memory are you using now the array is built
$finalMemory = memory_get_usage(false);
// the difference is a pretty close approximation
$arrayMemory = $finalMemory - $baseMemory;
1
相關問題
- 1. Numpy數組佔用太多內存
- 2. 空值佔用多少內存?
- 3. DLR的內存佔用量是多少?
- 4. 一般NSPasteboard佔用多少內存?
- 5. Python Pickle佔用多少內存?
- 6. (iphone)UIImage佔用多少內存?
- 7. int [n] []佔用多少內存?
- 8. 減少內存佔用
- 9. PHP-FPM佔用太多內存
- 10. PHP陣列佔用太多內存
- 11. C++扁平數組與多維數組內存佔用
- 12. 數據庫中的空值會佔用多少內存?
- 13. PHP函數檢查關聯數組中有多少個整數
- 14. 減少應用程序內存佔用
- 15. 佔用太多內存 - python
- 16. 減少內存佔用量的Java集
- 17. 如何減少多進程PHP應用程序的內存佔用
- 18. 檢查多少變量用PHP
- 19. 我的iPhone應用程序需要佔用多少內存?
- 20. Ruby on Rails應用程序應占用多少內存?
- 21. iPhone應用程序佔用多少內存iPhone 4
- 22. PHP實際使用多少內存?
- 23. 以下佔用多少存儲空間?
- 24. 查找文本將佔用多少行
- 25. Solr內存使用 - 如何減少solr的內存佔用
- 26. cpu佔用多少太多
- 27. Phonegap應用程序的內存佔用量與本機對應的內存佔用量相比是多少?
- 28. 檢查我的程序使用了多少內存
- 29. 檢查java中使用了多少內存bufferedImage?
- 30. Redis:我如何檢查實時使用多少內存?