Fun fact: Since Android Nougat apps cannot get the PID of other apps. This makes displaying the Memory info for apps other than Floating Info itself impossible. All other functionality will still work.
Floating Info is an Android application that displays the following in a system overlay window:
The application name, package name and process id (except on Nougat+) of the application which is currently in the device's foreground
The Global CPU utilisation with a per-core breakdown - This is not foreground application specific.
Memory usage breakdown for the currently foregrounded process - except on Nougat+ (read the notes for the caveats).
Netork information like connection type, proxy status and IP address(es). Both IPv4 and IPv6
Notes and Caveats
---
* The application will show the memory allocation of the currently foregrounded process which it gets by getting the Process Id of the currently foregrounded activity. This means that if an application has spawned multiple processes, this application will only show the memory utilisation of the main process.
* The Memory information displayed come via a Debug.MemoryInfo object, while using reflection to expose a number of hidden fields.
* Data updates happen approximately every 1 second.
Android Memory Usage
---
Memory management on Android is pretty complex and the easiest way to get started with understanding it is reading this article (https://developer.android.com/tools/debugging/debugging-memory.html) - especially the "Viewing Overall Memory Allocations" section.
GitHub Link: https://github.com/alt236/Floating-Info---Android
สนุกจริง: ตั้งแต่ปพลิเคชัน Android ตังเมไม่สามารถได้รับ PID ปพลิเคชันอื่น ๆ นี้จะทำให้การแสดงผลข้อมูลหน่วยความจำสำหรับปพลิเคชันอื่น ๆ นอกเหนือจากตลาดน้ำข้อมูลตัวเองเป็นไปไม่ได้ ทั้งหมดการทำงานอื่น ๆ จะยังคงทำงาน
ลอยข้อมูลเป็นโปรแกรม Android ที่แสดงต่อไปนี้ในหน้าต่างระบบภาพซ้อนทับ:
ชื่อโปรแกรมชื่อแพคเกจและกระบวนการ ID (ยกเว้นตังเม +) ของโปรแกรมซึ่งขณะนี้อยู่ในเบื้องหน้าของอุปกรณ์
การใช้ CPU ระดับโลกที่มีรายละเอียดต่อหลัก - นี้ไม่ได้เป็นโปรแกรมเบื้องหน้าที่เฉพาะเจาะจง
รายละเอียดการใช้งานหน่วยความจำสำหรับกระบวนการ foregrounded ขณะนี้ - ยกเว้นวันตังเม + (อ่านหมายเหตุสำหรับคำเตือน) ที่
ข้อมูล Netork เช่นประเภทการเชื่อมต่อสถานะพร็อกซี่และที่อยู่ IP (ES) ทั้ง IPv4 และ IPv6
บันทึกและเตือน
---
* โปรแกรมจะแสดงจัดสรรหน่วยความจำของกระบวนการ foregrounded ปัจจุบันซึ่งจะได้รับโดยการกระบวนการ ID ของกิจกรรม foregrounded ปัจจุบัน ซึ่งหมายความว่าหากเป็นโปรแกรมที่ได้กลับกลายกระบวนการหลายโปรแกรมนี้จะแสดงเฉพาะใช้หน่วยความจำของกระบวนการหลัก
* ข้อมูลที่หน่วยความจำที่แสดงมาผ่านทางวัตถุ Debug.MemoryInfo ในขณะที่ใช้การสะท้อนจะเปิดเผยจำนวนของเขตข้อมูลที่ซ่อน
* การปรับปรุงข้อมูลที่เกิดขึ้นเกือบทุก 1 วินาที
ใช้หน่วยความจำ Android
---
จัดการหน่วยความจำบน Android ที่มีความซับซ้อนสวยและวิธีที่ง่ายที่สุดในการเริ่มต้นด้วยความเข้าใจมันจะอ่านบทความนี้ (https://developer.android.com/tools/debugging/debugging-memory.html) - โดยเฉพาะอย่างยิ่ง "การดูงานหน่วยความจำโดยรวม "ส่วน
GitHub Link: https://github.com/alt236/Floating-Info---Android