Added logging of image gallery computation time

This commit is contained in:
davotoula
2025-09-13 21:09:27 +02:00
parent a21b6115c7
commit bfc920ca04

View File

@@ -20,6 +20,7 @@
*/
package com.vitorpamplona.amethyst.ui.components
import android.util.Log
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
@@ -560,6 +561,8 @@ private fun RenderWordsWithImageGallery(
words: ImmutableList<Segment>,
context: RenderContext,
) {
val startTime = System.currentTimeMillis()
var i = 0
val n = words.size
@@ -606,6 +609,8 @@ private fun RenderWordsWithImageGallery(
i++
}
}
Log.d("RichTextViewer", "RenderWordsWithImageGallery took ${System.currentTimeMillis() - startTime}ms for ${words.size} segments")
}
@Composable