Perfetto笔记-2-各字段含义
1. 每App "Heap size (KB)" 条目
1.1 打印位置
atrace dalvik 中打印出来的,代码位置:
//android/art/runtime/gc/space/region_space.cc //android/art/runtime/gc/heap-inl.h //android/art/runtime/gc/space/region_space-inl.h RegionSpace::TraceHeapSize() //region_space.ccRegionSpace::AllocateRegion //region_space.ccRegionSpace::AllocLarge //region_space-inl.hHeap::AllocObjectWithAllocator //heap-inl.hHeap::GrowForUtilization //art/runtime/gc/heap.ccHeap::TraceHeapSize(heap_size) //art/runtime/gc/heap.ccATraceIntegerValue("Heap size (KB)", heap_size / KB);
1.2 作用
反应Java堆内存的实时使用状态
2. 每App "HWUI All Memory" 条目
TODO
3. 每App "HWUI CPU Memory" 条目
TODO
4. 每App "HWUI Misc Memory" 条目
TODO
5. 每App "HWUI Texture Memory" 条目
TODO
