File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/util/database Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,18 @@ package org.matrix.android.sdk.internal.util.database
1919import io.realm.DynamicRealm
2020import io.realm.RealmObjectSchema
2121import timber.log.Timber
22+ import kotlin.system.measureTimeMillis
2223
2324internal abstract class RealmMigrator (
2425 private val realm : DynamicRealm ,
2526 private val targetSchemaVersion : Int
2627) {
2728 fun perform () {
2829 Timber .d(" Migrate ${realm.configuration.realmFileName} to $targetSchemaVersion " )
29- doMigrate(realm)
30+ val duration = measureTimeMillis {
31+ doMigrate(realm)
32+ }
33+ Timber .d(" Migrate ${realm.configuration.realmFileName} to $targetSchemaVersion took $duration ms." )
3034 }
3135
3236 abstract fun doMigrate (realm : DynamicRealm )
You can’t perform that action at this time.
0 commit comments