apple / apple/swift-log

There are now native way to measure async code

Closed
#499 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4k
Forks
344
Avg merge
1d 11h
Merged PRs (30d)
5

Description

Currently there are no way to measure async code like XCTest do this for synchron code.

I know there are many pitfalls, for example don't measure thread hops, task suspensions and so one in there, but are there any approaches to get async measure methods in the future or are there a collection of pitfalls that someone keep in mind if she/he want to contribute?

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reviewing XCTest's synchronous measurement approach and the stated concerns about thread hops and task suspensions; done would require an agreed design for measuring async code and its pitfalls.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.