mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 21:51:23 +02:00
Added logging of image gallery computation time
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user