Skip to content

Add support for Thread Performance Checker scheme diagnostics optionΒ #693

@kwridan

Description

@kwridan

Context πŸ•΅οΈβ€β™€οΈ

In Xcode 14 there's a new "Thread Performance" runtime checker that is enabled by default. This can be configured within the scheme's Run action (LaunchAction).

Screenshot 2022-06-28 at 07 11 02

What 🌱

The new option appears in the LaunchAction only if disabled and omitted if enabled (similar to main thread checker).

    <LaunchAction
       buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       disableMainThreadChecker = "YES"
+      disablePerformanceAntipatternChecker = "YES"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
       ignoresPersistentStateOnLaunch = "NO"
       debugDocumentVersioning = "YES"
       debugServiceExtension = "internal"
       allowLocationSimulation = "YES">
       <BuildableProductRunnable
          runnableDebuggingMode = "0">
          <BuildableReference
             BuildableIdentifier = "primary"
             BlueprintIdentifier = "FB2F4AA5286220B400DF0A62"
             BuildableName = "TemplateApp.app"
             BlueprintName = "TemplateApp"
             ReferencedContainer = "container:TemplateApp.xcodeproj">
          </BuildableReference>
       </BuildableProductRunnable>
    </LaunchAction>

Proposal πŸŽ‰

  • Introduce a disablePerformanceAntipatternChecker property on XCScheme.LaunchAction
  • It should be placed immediately after disableMainThreadChecker in the generated scheme

Notes

  • This option currently appears under the Run action (LaunchAction) only and not under the Test action.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions