Added logging

This commit is contained in:
M66B
2020-01-23 09:30:08 +01:00
parent 89ee4e238c
commit 92a3db3354
2 changed files with 15 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ import androidx.lifecycle.Observer;
import androidx.preference.PreferenceManager;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
@@ -62,6 +63,7 @@ public class ApplicationEx extends Application {
public void onCreate() {
super.onCreate();
long start = new Date().getTime();
Log.logMemory(this, "App create version=" + BuildConfig.VERSION_NAME);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
@@ -105,7 +107,8 @@ public class ApplicationEx extends Application {
WorkerWatchdog.init(this);
WorkerCleanup.queue(this);
Log.i("App created");
long end = new Date().getTime();
Log.i("App created " + (end - start) + " ms");
}
@Override