diff --git a/ETTrace/ETTraceRunner/PerfAnalysisRunner.swift b/ETTrace/ETTraceRunner/ETTrace.swift similarity index 79% rename from ETTrace/ETTraceRunner/PerfAnalysisRunner.swift rename to ETTrace/ETTraceRunner/ETTrace.swift index e25b167..493d5d9 100644 --- a/ETTrace/ETTraceRunner/PerfAnalysisRunner.swift +++ b/ETTrace/ETTraceRunner/ETTrace.swift @@ -1,5 +1,5 @@ // -// main.swift +// ETTrace.swift // PerfAnalysisRunner // // Created by Itay Brenner on 6/3/23. @@ -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 @@ -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 { @@ -35,7 +35,7 @@ struct PerfAnalysisRunner: ParsableCommand { } catch let error { print("ETTrace error: \(error)") } - PerfAnalysisRunner.exit() + ETTrace.exit() } RunLoop.main.run() diff --git a/ETTrace/ETTraceRunner/main.swift b/ETTrace/ETTraceRunner/main.swift index 7503fd7..5e00005 100644 --- a/ETTrace/ETTraceRunner/main.swift +++ b/ETTrace/ETTraceRunner/main.swift @@ -5,4 +5,4 @@ // Created by Itay Brenner on 6/6/23. // -PerfAnalysisRunner.main() +ETTrace.main()