From 1384a68ee38777307701c3e3e1b1fa5f376da5a7 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 26 Sep 2025 16:08:37 -0400 Subject: [PATCH] Dumps the number of relay hints urls in the DB --- .../main/java/com/vitorpamplona/amethyst/DebugUtils.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/DebugUtils.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/DebugUtils.kt index 4f5ecbc9e..78a12f4bb 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/DebugUtils.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/DebugUtils.kt @@ -26,6 +26,7 @@ import android.content.pm.ApplicationInfo import android.os.Debug import androidx.core.content.getSystemService import com.vitorpamplona.amethyst.model.LocalCache +import com.vitorpamplona.quartz.nip01Core.relay.normalizer.normalizedUrls import com.vitorpamplona.quartz.utils.Log import kotlin.time.DurationUnit import kotlin.time.measureTimedValue @@ -68,6 +69,13 @@ fun debugState(context: Context) { .value.available.size, ) + Log.d( + STATE_DUMP_TAG, + "Indexed Relays: " + + Amethyst.instance.cache.relayHints.relayDB + .size() + "/" + normalizedUrls.size(), + ) + Log.d( STATE_DUMP_TAG, "Image Disk Cache ${(Amethyst.instance.diskCache.size) / (1024 * 1024)}/${(Amethyst.instance.diskCache.maxSize) / (1024 * 1024)} MB",