public class BuildProfile extends Object
Setters are expected to be called in the following order:
| Constructor and Description |
|---|
BuildProfile(Gradle gradle) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBuildStarted() |
DependencyResolveProfile |
getDependencySetProfile(ResolvableDependencies dependencySet) |
CompositeOperation<DependencyResolveProfile> |
getDependencySets() |
long |
getElapsedAfterProjectsEvaluated()
Get the elapsed time (in mSec) between the buildFinished event and the projectsEvaluated event.
|
long |
getElapsedProjectsEvaluated()
Get the elapsed time (in mSec) between the projectsEvaluated event and the projectsLoaded event.
|
long |
getElapsedProjectsLoading()
Get the elapsed time (in mSec) between the settingsEvaluated event and the projectsLoaded event.
|
long |
getElapsedSettings()
Get the elapsed time (in mSec) between the buildStarted event and the settingsEvaluated event.
|
long |
getElapsedStartup()
Get the elapsed time (in mSec) between the start of profiling and the buildStarted event.
|
long |
getElapsedTotal()
Get the total elapsed time (in mSec) between the start of profiling and the buildFinished event.
|
long |
getElapsedTotalExecutionTime()
Get the total task execution time from all projects.
|
Gradle |
getGradle() |
CompositeOperation<Operation> |
getProjectConfiguration() |
ProjectProfile |
getProjectProfile(Project project)
Get the profiling container for the specified project
|
List<ProjectProfile> |
getProjects()
Get a list of the profiling containers for all projects
|
String |
getTaskDescription()
Get a description of the tasks passed to gradle as targets from the command line
|
boolean |
isSuccessful() |
void |
setBuildFinished(long buildFinished)
Should be set with a timestamp from a
BuildListener.buildFinished(org.gradle.BuildResult)
callback. |
void |
setBuildStarted(long buildStarted)
Should be set with a timestamp from a
BuildListener.buildStarted(org.gradle.api.invocation.Gradle)
callback. |
void |
setProfilingStarted(long profilingStarted)
Should be set with a time as soon as possible after startup.
|
void |
setProjectsEvaluated(long projectsEvaluated)
Should be set with a timestamp from a
BuildListener.projectsEvaluated(org.gradle.api.invocation.Gradle)
callback. |
void |
setProjectsLoaded(long projectsLoaded)
Should be set with a timestamp from a
BuildListener.projectsLoaded(org.gradle.api.invocation.Gradle)
callback. |
void |
setSettingsEvaluated(long settingsEvaluated)
Should be set with a timestamp from a
BuildListener.settingsEvaluated(org.gradle.api.initialization.Settings)
callback. |
void |
setSuccessful(boolean successful) |
public BuildProfile(Gradle gradle)
public Gradle getGradle()
public long getBuildStarted()
public String getTaskDescription()
public ProjectProfile getProjectProfile(Project project)
project - to look uppublic List<ProjectProfile> getProjects()
public CompositeOperation<Operation> getProjectConfiguration()
public DependencyResolveProfile getDependencySetProfile(ResolvableDependencies dependencySet)
public CompositeOperation<DependencyResolveProfile> getDependencySets()
public void setProfilingStarted(long profilingStarted)
profilingStarted - public void setBuildStarted(long buildStarted)
BuildListener.buildStarted(org.gradle.api.invocation.Gradle)
callback.buildStarted - public void setSettingsEvaluated(long settingsEvaluated)
BuildListener.settingsEvaluated(org.gradle.api.initialization.Settings)
callback.settingsEvaluated - public void setProjectsLoaded(long projectsLoaded)
BuildListener.projectsLoaded(org.gradle.api.invocation.Gradle)
callback.projectsLoaded - public void setProjectsEvaluated(long projectsEvaluated)
BuildListener.projectsEvaluated(org.gradle.api.invocation.Gradle)
callback.projectsEvaluated - public void setBuildFinished(long buildFinished)
BuildListener.buildFinished(org.gradle.BuildResult)
callback.buildFinished - public long getElapsedStartup()
public long getElapsedTotal()
public long getElapsedSettings()
public long getElapsedProjectsLoading()
public long getElapsedProjectsEvaluated()
public long getElapsedAfterProjectsEvaluated()
public long getElapsedTotalExecutionTime()
public boolean isSuccessful()
public void setSuccessful(boolean successful)
Copyright © 2013. All rights reserved