Add more sync logging
It looks like we're spending some time in the untimed area of the sync Change-Id: Ifa0fcccf5da74a72ab2b10491114a8a14a94a7ab
This commit is contained in:
parent
399332311e
commit
3058ee8f9e
|
@ -148,24 +148,50 @@ internal class SyncResponseHandler @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Everything else we need to do outside the transaction
|
// Everything else we need to do outside the transaction
|
||||||
|
measureTimeMillis {
|
||||||
|
Timber.v("Handle Aggregator")
|
||||||
aggregatorHandler.handle(aggregator)
|
aggregatorHandler.handle(aggregator)
|
||||||
|
}.also {
|
||||||
|
Timber.i("Finish handling Aggregator in $it ms")
|
||||||
|
}
|
||||||
|
|
||||||
|
measureTimeMillis {
|
||||||
|
Timber.v("Handle Push rules")
|
||||||
syncResponse.rooms?.let {
|
syncResponse.rooms?.let {
|
||||||
checkPushRules(it, isInitialSync)
|
checkPushRules(it, isInitialSync)
|
||||||
userAccountDataSyncHandler.synchronizeWithServerIfNeeded(it.invite)
|
userAccountDataSyncHandler.synchronizeWithServerIfNeeded(it.invite)
|
||||||
dispatchInvitedRoom(it)
|
dispatchInvitedRoom(it)
|
||||||
}
|
}
|
||||||
|
}.also {
|
||||||
|
Timber.i("Finish handling Push rules in $it ms")
|
||||||
|
}
|
||||||
|
measureTimeMillis {
|
||||||
|
Timber.v("Handle Group data")
|
||||||
syncResponse.groups?.let {
|
syncResponse.groups?.let {
|
||||||
scheduleGroupDataFetchingIfNeeded(it)
|
scheduleGroupDataFetchingIfNeeded(it)
|
||||||
}
|
}
|
||||||
|
}.also {
|
||||||
|
Timber.i("Finish handling Group data in $it ms")
|
||||||
|
}
|
||||||
|
|
||||||
Timber.v("On sync completed")
|
Timber.v("On sync completed")
|
||||||
|
measureTimeMillis {
|
||||||
|
Timber.v("Handle onSyncCompleted")
|
||||||
cryptoSyncHandler.onSyncCompleted(syncResponse)
|
cryptoSyncHandler.onSyncCompleted(syncResponse)
|
||||||
|
}.also {
|
||||||
|
Timber.i("Finish handling onSyncCompleted in $it ms")
|
||||||
|
}
|
||||||
|
|
||||||
// post sync stuffs
|
// post sync stuffs
|
||||||
|
measureTimeMillis {
|
||||||
|
Timber.v("Handle postSyncSpaceHierarchy")
|
||||||
monarchy.writeAsync {
|
monarchy.writeAsync {
|
||||||
roomSyncHandler.postSyncSpaceHierarchyHandle(it)
|
roomSyncHandler.postSyncSpaceHierarchyHandle(it)
|
||||||
}
|
}
|
||||||
|
}.also {
|
||||||
|
Timber.i("Finish handling postSyncSpaceHierarchy in $it ms")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun dispatchInvitedRoom(roomsSyncResponse: RoomsSyncResponse) {
|
private fun dispatchInvitedRoom(roomsSyncResponse: RoomsSyncResponse) {
|
||||||
|
|
Loading…
Reference in New Issue