What is Godot?
Do you like waiting? Godot is for passionate thumb-twiddlers of the quantified-self-era. A Gradle plugin to help you keep track of how much time you spend waiting for builds to finish.
--profile
option in Gradle?
Isn't that like the --profile
only summarizes the timing of one build, whereas Godot keeps track of how your build duration changes over time.
How to use this
Add the following to your project's root build.gradle
:
buildScript {
repositories {
jcenter()
}
dependencies {
// ... other buildscript dependencies, e.g. the Android Gradle plugin
classpath 'de.hannesstruss:godot:+'
}
}
apply plugin: 'de.hannesstruss.godot'
When the plugin is applied, it'll keep information about how long each of your builds took. Continue working for a couple of days, then run
./gradlew generateGodotReport
and Godot will generate a nice report with some charts.
Without configuration, the logfile for your builds will be kept in the GRADLE_USER_HOME
directory which defaults to ~/.gradle
. If you'd rather keep it in your project's build directory, you can configure your build.gradle
like this:
godot.persistLog = false
Be aware that a gradle clean
will then remove the logfile.
Credits
Godot is created by Hannes Struß with help from d3.js and dimple.
License
Copyright 2015 Hannes Struß Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.