giginet / xcprofiler

:chart_with_upwards_trend: CLI to profile compilation time of Swift project
MIT License
332 stars 13 forks source link

Add output-json option #23

Closed giginet closed 7 years ago

giginet commented 7 years ago

closes #20

Add command line option --output-path. You can specify the path indicates output path for JSONReporter.

$ xcprofiler --output-path "result.json" MyApp
timakin commented 7 years ago

Is there no test? Maybe you could add the test that generates temporary output JSON and has a validation of regex-match.

giginet commented 7 years ago

There are no tests parsing options. I'm going to add them later.

giginet commented 7 years ago

@timakin I fixed.

timakin commented 7 years ago

LGTM

giginet commented 7 years ago

:heart: