Memory Manager allows you monitoring changes in FPS and consumption of memory within the application.
Add following code to build.gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.kirilamenski:memorymanager:0.1.8'
}
You can use this library with activity
or with application
.
But to use it with application
you need add in AndroidManifest:
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
and also allow "Display over other apps" in the settings:
Kotlin
val memoryManager = MemoryManager.init(applicationContext)
memoryManager?.delay = 1000
memoryManager?.x = 10
memoryManager?.y = 300
to destroy manager call
MemoryManager.destroy()