kgraphql / com.apurebase.kgraphql.test.statistics / SimpleStatisticsCollector

SimpleStatisticsCollector

class SimpleStatisticsCollector : StatisticsCollector

Constructors

<init>

SimpleStatisticsCollector()

Functions

createStatisticsSnapshot

returns a immutable copy of the statistics at the point of calling this method

suspend fun createStatisticsSnapshot(): DataLoaderStatistics

incBatchCallsExecutedAsync

suspend fun incBatchCallsExecutedAsync(): Deferred<Long>

incCacheHitCountAsync

suspend fun incCacheHitCountAsync(): Deferred<Long>

incClearAllMethodCalledAsync

suspend fun incClearAllMethodCalledAsync(): Deferred<Long>

incClearMethodCalledAsync

suspend fun incClearMethodCalledAsync(): Deferred<Long>

incDispatchMethodCalledAsync

suspend fun incDispatchMethodCalledAsync(): Deferred<Long>

incLoadAsyncMethodCalledAsync

suspend fun incLoadAsyncMethodCalledAsync(): Deferred<Long>

incLoadManyAsyncMethodCalledAsync

suspend fun incLoadManyAsyncMethodCalledAsync(): Deferred<Long>

incObjectsRequestedAsync

Increment by the number of requested objects

suspend fun incObjectsRequestedAsync(objects: Long): Deferred<Long>

incPrimeMethodCalledAsync

suspend fun incPrimeMethodCalledAsync(): Deferred<Long>