Skip to content

Commit

Permalink
Rename struct (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin authored Sep 19, 2023
1 parent 9ba03b1 commit 26cf2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// main.swift
// ETTrace.swift
// PerfAnalysisRunner
//
// Created by Itay Brenner on 6/3/23.
Expand All @@ -8,7 +8,7 @@
import Foundation
import ArgumentParser

struct PerfAnalysisRunner: ParsableCommand {
struct ETTrace: ParsableCommand {
@Option(name: .shortAndLong, help: "Directory with dSYMs")
var dsyms: String? = nil

Expand All @@ -26,7 +26,7 @@ struct PerfAnalysisRunner: ParsableCommand {

mutating func run() throws {
if let dsym = dsyms, dsym.hasSuffix(".dSYM") {
PerfAnalysisRunner.exit(withError: ValidationError("The dsym argument should be set to a folder containing your dSYM files, not the dSYM itself"))
ETTrace.exit(withError: ValidationError("The dsym argument should be set to a folder containing your dSYM files, not the dSYM itself"))
}
let helper = RunnerHelper(dsyms, launch, simulator, verbose, multiThread)
Task {
Expand All @@ -35,7 +35,7 @@ struct PerfAnalysisRunner: ParsableCommand {
} catch let error {
print("ETTrace error: \(error)")
}
PerfAnalysisRunner.exit()
ETTrace.exit()
}

RunLoop.main.run()
Expand Down
2 changes: 1 addition & 1 deletion ETTrace/ETTraceRunner/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Created by Itay Brenner on 6/6/23.
//

PerfAnalysisRunner.main()
ETTrace.main()

0 comments on commit 26cf2db

Please sign in to comment.