Package com.google.gwt.core.ext.linker
Class CompilationMetricsArtifact
java.lang.Object
com.google.gwt.core.ext.linker.Artifact<CompilationMetricsArtifact>
com.google.gwt.core.ext.linker.CompilationMetricsArtifact
- All Implemented Interfaces:
Serializable,Comparable<Artifact<?>>
Captures some metrics from the compile permutations step of the build.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCompilationMetricsArtifact(int permutationId) protectedCompilationMetricsArtifact(Class<? extends Linker> linker, int permutationId) -
Method Summary
Modifier and TypeMethodDescriptionprotected intPerforms comparison with an artifact of a compatible base type.protected final Class<CompilationMetricsArtifact>Returns the base type to use for comparisons between Artifacts.longlongint[]intinthashCode()The class which is returned fromArtifact.getComparableArtifactType()must declare a final implementation which returns the same hash code for objects for whichArtifact.compareToComparableArtifact(Artifact)returns 0.setCompileElapsedMilliseconds(long compileElapsedMilliseconds) setElapsedMilliseconds(long elapsedMilliseconds) voidsetJsSize(com.google.gwt.dev.js.SizeBreakdown[] sizeBreakdowns) setPermutationDescription(String permutationDescription)
-
Constructor Details
-
CompilationMetricsArtifact
public CompilationMetricsArtifact(int permutationId) -
CompilationMetricsArtifact
-
-
Method Details
-
getCompileElapsedMilliseconds
public long getCompileElapsedMilliseconds()- Returns:
- wall clock time elapsed since start of compilation
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Returns:
- wall clock time elapsed since start of execution
-
getJsSize
public int[] getJsSize()- Returns:
- a map containing the name of the JavaScript fragments and their sizes.
-
getPermutationId
public int getPermutationId()- Returns:
- the permutation id associated with compiling this permutation.
-
getPermutationDescription
- Returns:
- human readable description of the permutation
-
hashCode
public int hashCode()Description copied from class:ArtifactThe class which is returned fromArtifact.getComparableArtifactType()must declare a final implementation which returns the same hash code for objects for whichArtifact.compareToComparableArtifact(Artifact)returns 0.- Specified by:
hashCodein classArtifact<CompilationMetricsArtifact>
-
setCompileElapsedMilliseconds
- Parameters:
compileElapsedMilliseconds- wall clock time elapsed since start of compilation
-
setElapsedMilliseconds
- Parameters:
elapsedMilliseconds- wall clock time elapsed since JVM startup
-
setJsSize
public void setJsSize(com.google.gwt.dev.js.SizeBreakdown[] sizeBreakdowns) - Parameters:
sizeBreakdowns- breakdown of sizes in JavaScript fragments
-
setPermutationDescription
- Parameters:
permutationDescription- human readable description of the permutation
-
compareToComparableArtifact
Description copied from class:ArtifactPerforms comparison with an artifact of a compatible base type. Objects which compare to 0 are assumed equal, and must return the sameArtifact.hashCode().- Specified by:
compareToComparableArtifactin classArtifact<CompilationMetricsArtifact>
-
getComparableArtifactType
Description copied from class:ArtifactReturns the base type to use for comparisons between Artifacts. All concrete implementations of this methods must be final.- Specified by:
getComparableArtifactTypein classArtifact<CompilationMetricsArtifact>
-