1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Benchmark loading sources.

This commit is contained in:
Rob Rix 2015-11-03 11:56:01 -05:00
parent 3c01ded455
commit db614b5b16

View File

@ -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")