Initial ReSearch export
This commit is contained in:
commit
e8a49575c1
145 files changed
+14188
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package com.example.research.core.performance
|
||||
|
||||
object ReSearchTrace {
|
||||
const val SEARCH_PAGING = "ReSearch/Search/Paging"
|
||||
const val SEARCH_DIRECT = "ReSearch/Search/Direct"
|
||||
const val ARTICLE_PARSE = "ReSearch/Article/Parse"
|
||||
const val ARTICLE_READ = "ReSearch/Article/Read"
|
||||
const val ARTICLE_PRE_MEASURE = "ReSearch/Article/PreMeasure"
|
||||
const val DICTIONARY_DOWNLOAD = "ReSearch/Dictionary/Download"
|
||||
const val DICTIONARY_EXTRACT = "ReSearch/Dictionary/Extract"
|
||||
const val DICTIONARY_INDEX = "ReSearch/Dictionary/Index"
|
||||
const val DICTIONARY_IMPORT = "ReSearch/Dictionary/Import"
|
||||
|
||||
inline fun <T> section(
|
||||
@Suppress("UNUSED_PARAMETER") name: String,
|
||||
block: () -> T,
|
||||
): T = block()
|
||||
|
||||
suspend fun <T> asyncSection(
|
||||
@Suppress("UNUSED_PARAMETER") name: String,
|
||||
block: suspend () -> T,
|
||||
): T = block()
|
||||
}
|
||||
Reference in new issue
Block a user