chore: add logging to help investigate hang - WPB-22986#4271
chore: add logging to help investigate hang - WPB-22986#4271samwyndham wants to merge 8 commits intorelease/cycle-4.15from
Conversation
Test Results3 995 tests 3 967 ✅ 4m 17s ⏱️ For more details on these failures, see this check. Results for commit f98a46d. ♻️ This comment has been updated with latest results. Summary: workflow run #21744855282 |
netbe
left a comment
There was a problem hiding this comment.
don't you have hang detection enabled to see hang in action
@netbe Yes I do but in all my tests I haven't yet got a hang in
|
|
|




Issue
One of our common hangs is one which takes place in
ZMUserSession.setUpSyncAgent(clientID:)due to a call toNSManagedObjectContext.performAndWait(_:)- see ticket for more details.I'm unable to reproduce any issue here so with this PR I'm just adding some logging. My hope is to catch incidences of a hang in Beta so that I can investigate better what is happening via beta logs.
In this PR I also made some changes to
WireLogger.measureTimeto allow for working with non async code.Checklist
[WPB-XXX].