Files
sourcekit-lsp/Sources/Diagnose/DebugCommand.swift
Alex Hoppen dd19baa302 Add subcommand to visualize the requests running concurrently using a trace file
Showing the list of active requests didn’t turn out to be very useful for debugging. What is more useful, however, is to visualize the requests as the get enqueued and handled in a trace chart. This gives a very intuitive view of which request is blocking another request from getting executed.
2024-09-30 12:04:11 -07:00

34 lines
1.0 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#if compiler(>=6)
package import ArgumentParser
#else
import ArgumentParser
#endif
package struct DebugCommand: ParsableCommand {
package static let configuration = CommandConfiguration(
commandName: "debug",
abstract: "Commands to debug sourcekit-lsp. Intended for developers of sourcekit-lsp",
subcommands: [
IndexCommand.self,
ReduceCommand.self,
ReduceFrontendCommand.self,
RunSourceKitdRequestCommand.self,
TraceFromSignpostsCommand.self,
]
)
package init() {}
}