Dumps the number of relay hints urls in the DB
This commit is contained in:
@@ -26,6 +26,7 @@ import android.content.pm.ApplicationInfo
|
|||||||
import android.os.Debug
|
import android.os.Debug
|
||||||
import androidx.core.content.getSystemService
|
import androidx.core.content.getSystemService
|
||||||
import com.vitorpamplona.amethyst.model.LocalCache
|
import com.vitorpamplona.amethyst.model.LocalCache
|
||||||
|
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.normalizedUrls
|
||||||
import com.vitorpamplona.quartz.utils.Log
|
import com.vitorpamplona.quartz.utils.Log
|
||||||
import kotlin.time.DurationUnit
|
import kotlin.time.DurationUnit
|
||||||
import kotlin.time.measureTimedValue
|
import kotlin.time.measureTimedValue
|
||||||
@@ -68,6 +69,13 @@ fun debugState(context: Context) {
|
|||||||
.value.available.size,
|
.value.available.size,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Log.d(
|
||||||
|
STATE_DUMP_TAG,
|
||||||
|
"Indexed Relays: " +
|
||||||
|
Amethyst.instance.cache.relayHints.relayDB
|
||||||
|
.size() + "/" + normalizedUrls.size(),
|
||||||
|
)
|
||||||
|
|
||||||
Log.d(
|
Log.d(
|
||||||
STATE_DUMP_TAG,
|
STATE_DUMP_TAG,
|
||||||
"Image Disk Cache ${(Amethyst.instance.diskCache.size) / (1024 * 1024)}/${(Amethyst.instance.diskCache.maxSize) / (1024 * 1024)} MB",
|
"Image Disk Cache ${(Amethyst.instance.diskCache.size) / (1024 * 1024)}/${(Amethyst.instance.diskCache.maxSize) / (1024 * 1024)} MB",
|
||||||
|
|||||||
Reference in New Issue
Block a user