Modify proc stats to show new memory use computation.
Switch the proc status UI's memory use bar to be based on the new total memory use computation, instead of showing that weird "time spent in memory states" thing. Also now have it link to a detail page that shows details of time spent in memory states and RAM used by various things. Change-Id: I6817a499db518adb8e72466a5e9cfe18a81be5d5
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
|
||||
|
||||
<com.android.settings.applications.LinearColorBar
|
||||
android:id="@+id/linear_color_bar"
|
||||
android:layout_width="match_parent"
|
||||
|
63
res/layout/process_stats_mem_details.xml
Normal file
63
res/layout/process_stats_mem_details.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:scrollbarStyle="@integer/preference_scrollbar_style">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/all_details"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingTop="5dip"
|
||||
android:paddingBottom="5dip"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="?android:attr/listSeparatorTextViewStyle"
|
||||
android:text="@string/mem_state_subtitle" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/mem_state"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="6dip"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Insert detail items here -->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
style="?android:attr/listSeparatorTextViewStyle"
|
||||
android:text="@string/mem_use_subtitle" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/mem_use"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="6dip"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Insert detail items here -->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
@@ -1256,4 +1256,30 @@
|
||||
<item>15</item>
|
||||
<item>20</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Process stats memory use details: labels for memory states -->
|
||||
<string-array name="proc_stats_memory_states" >
|
||||
<item>Normal</item>
|
||||
<item>Moderate</item>
|
||||
<item>Low</item>
|
||||
<item>Critical</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Process stats memory use details: labels for process -->
|
||||
<string-array name="proc_stats_process_states" >
|
||||
<item>Persistent</item>
|
||||
<item>Top activity</item>
|
||||
<item>Important (foreground)</item>
|
||||
<item>Important (background)</item>
|
||||
<item>Backup</item>
|
||||
<item>Heavy weight</item>
|
||||
<item>Service (running)</item>
|
||||
<item>Service (restarting)</item>
|
||||
<item>Receiver</item>
|
||||
<item>Home</item>
|
||||
<item>Last activity</item>
|
||||
<item>Cached (activity)</item>
|
||||
<item>Cached (activity client)</item>
|
||||
<item>Cached (empty)</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
@@ -3803,6 +3803,24 @@
|
||||
<string name="services_subtitle">Services</string>
|
||||
<!-- [CHAR LIMIT=NONE] Menu for process stats to select duration of stats to show -->
|
||||
<string name="menu_proc_stats_duration">Duration</string>
|
||||
<!-- [CHAR LIMIT=NONE] Activity title for process stats details on overall memory state -->
|
||||
<string name="mem_details_title">Memory details</string>
|
||||
<!-- [CHAR LIMIT=NONE] Subtitle for process stats memory state details for list of memory states -->
|
||||
<string name="mem_state_subtitle">Memory states</string>
|
||||
<!-- [CHAR LIMIT=NONE] Subtitle for process stats memory state details for list of memory use -->
|
||||
<string name="mem_use_subtitle">Memory use</string>
|
||||
<!-- [CHAR LIMIT=NONE] Type of memory use associated with the kernel -->
|
||||
<string name="mem_use_kernel_type">Kernel</string>
|
||||
<!-- [CHAR LIMIT=NONE] Type of memory use associated with native processes -->
|
||||
<string name="mem_use_native_type">Native</string>
|
||||
<!-- [CHAR LIMIT=NONE] Type of memory use associated with kernel caches -->
|
||||
<string name="mem_use_kernel_cache_type">Kernel caches</string>
|
||||
<!-- [CHAR LIMIT=NONE] Type of memory use associated with kernel zram swap -->
|
||||
<string name="mem_use_zram_type">ZRam swap</string>
|
||||
<!-- [CHAR LIMIT=NONE] Type of memory use that is available/free -->
|
||||
<string name="mem_use_free_type">Free</string>
|
||||
<!-- [CHAR LIMIT=NONE] Total of all memory use -->
|
||||
<string name="mem_use_total">Total</string>
|
||||
<!-- [CHAR LIMIT=NONE] Menu for process stats to show 3 hours of data -->
|
||||
<string name="menu_duration_3h">3 hours</string>
|
||||
<!-- [CHAR LIMIT=NONE] Menu for process stats to show 3 hours of data -->
|
||||
|
Reference in New Issue
Block a user