mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Benchmark loading sources.
This commit is contained in:
parent
3c01ded455
commit
db614b5b16
@ -144,7 +144,7 @@ func parserForType(type: String) -> String throws -> Term {
|
||||
}
|
||||
}
|
||||
|
||||
let parsed = parse(argumentsParser, input: Process.arguments)
|
||||
let parsed = benchmark("parsing arguments & loading sources") { parse(argumentsParser, input: Process.arguments) }
|
||||
let arguments: Argument = try parsed.either(ifLeft: { throw "\($0)" }, ifRight: { $0 })
|
||||
let (aSource, bSource) = arguments.sources
|
||||
let jsonURL = NSURL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true).URLByAppendingPathComponent("diff.json")
|
||||
|
Loading…
Reference in New Issue
Block a user