README.md in danger-xcprofiler-0.4.0 vs README.md in danger-xcprofiler-0.5.0

- old
+ new

@@ -1,8 +1,7 @@ # danger-xcprofiler -[![Build Status](https://travis-ci.org/giginet/danger-xcprofiler.svg?branch=master)](https://travis-ci.org/giginet/danger-xcprofiler) -[![Coverage Status](https://coveralls.io/repos/github/giginet/danger-xcprofiler/badge.svg?branch=master)](https://coveralls.io/github/giginet/danger-xcprofiler?branch=master) +![GitHub Action](https://github.com/giginet/danger-xcprofiler/actions/workflows/ruby.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/danger-xcprofiler.svg)](https://badge.fury.io/rb/danger-xcprofiler) [danger](https://github.com/danger/danger) plugin for asserting Swift compilation time. See detail for README of [xcprofiler](https://github.com/giginet/xcprofiler). @@ -21,9 +20,15 @@ Just add this line to your Dangerfile: ```ruby xcprofiler.report 'MyApp' +``` + +Or specify an xcactivitylog path +```ruby +logDir = Dir[File.join('DerivedData/Logs/Build/', '*.xcactivitylog')].first +xcprofiler.report nil, nil, logDir ``` If compilation times of each methods are exceeded the thresholds, `danger` adds inline comment to your PR. Default thresholds is 50ms for warning, 100ms for failure.