Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我经常在做某事的两种或多种形式之间产生怀疑。在 Android 中,我尝试以更高效的方式来实现,即处理器使用更少资源和 RAM 的方式。如何测量应用程序的 cpu 和 RAM 消耗以比较不同的方法?
您可以分析您的应用程序。Android SDK 自带 traceview ,说明很不错。您还可以从DDMS观察内存分配。