mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 17:31:58 +00:00
Merge "memtrack: Update AIDL memtrack hal documentation" am: 55305df1ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1751681 Change-Id: I7c20edd812cb4713c7d5ea0fb567646c3cc7b1bb
This commit is contained in:
@@ -31,12 +31,14 @@ import android.hardware.memtrack.MemtrackType;
|
|||||||
* accounting for stride, bit depth, rounding up to page size, etc.
|
* accounting for stride, bit depth, rounding up to page size, etc.
|
||||||
*
|
*
|
||||||
* The following getMemory() categories are important for memory accounting in
|
* The following getMemory() categories are important for memory accounting in
|
||||||
* `dumpsys meminfo` and should be reported as described below:
|
* Android frameworks (e.g. `dumpsys meminfo`) and should be reported as described
|
||||||
|
* below:
|
||||||
*
|
*
|
||||||
* - MemtrackType::GRAPHICS and MemtrackRecord::FLAG_SMAPS_UNACCOUNTED
|
* - MemtrackType::GRAPHICS and MemtrackRecord::FLAG_SMAPS_UNACCOUNTED
|
||||||
* This should report the PSS of all DMA buffers mapped by the process
|
* This should report the PSS of all CPU-Mapped DMA-BUFs (buffers mapped into
|
||||||
* with the specified PID. This PSS can be calculated using ReadDmaBufPss()
|
* the process address space) and all GPU-Mapped DMA-BUFs (buffers mapped into
|
||||||
* form libdmabufinfo.
|
* the GPU device address space on behalf of the process), removing any overlap
|
||||||
|
* between the CPU-mapped and GPU-mapped sets.
|
||||||
*
|
*
|
||||||
* - MemtrackType::GL and MemtrackRecord::FLAG_SMAPS_UNACCOUNTED
|
* - MemtrackType::GL and MemtrackRecord::FLAG_SMAPS_UNACCOUNTED
|
||||||
* This category should report all GPU private allocations for the specified
|
* This category should report all GPU private allocations for the specified
|
||||||
@@ -46,6 +48,10 @@ import android.hardware.memtrack.MemtrackType;
|
|||||||
* Any other memory not accounted for in /proc/<pid>/smaps if any, otherwise
|
* Any other memory not accounted for in /proc/<pid>/smaps if any, otherwise
|
||||||
* this should return 0.
|
* this should return 0.
|
||||||
*
|
*
|
||||||
|
* SMAPS_UNACCOUNTED memory should also include memory that is mapped with
|
||||||
|
* VM_PFNMAP flag set. For these mappings PSS and RSS are reported as 0 in smaps.
|
||||||
|
* Such mappings have no backing page structs from which PSS/RSS can be calculated.
|
||||||
|
*
|
||||||
* Constructor for the interface should be used to perform memtrack management
|
* Constructor for the interface should be used to perform memtrack management
|
||||||
* setup actions and must be called once before any calls to getMemory().
|
* setup actions and must be called once before any calls to getMemory().
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user