mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We can't use os_log functionality in logd, diagnosticd, or notifyd. Check for them and disable tracing in those processes. Add a new TracingCommon.h for common code shared between swiftCore and swift_Concurrency tracing. Add a single function that checks if tracing should be enabled, which now checks if os_signpost_enabled is available, and if the process is one of these. Modify the tracing code to check this before creating os_log objects. rdar://124226334
1.3 KiB
1.3 KiB