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
ModifierConstructorDescriptionCompilationMetricsArtifact
(int permutationId) protected
CompilationMetricsArtifact
(Class<? extends Linker> linker, int permutationId) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Performs comparison with an artifact of a compatible base type.protected final Class
<CompilationMetricsArtifact> Returns the base type to use for comparisons between Artifacts.long
long
int[]
int
int
hashCode()
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) void
setJsSize
(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:Artifact
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.- Specified by:
hashCode
in 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:Artifact
Performs 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:
compareToComparableArtifact
in classArtifact<CompilationMetricsArtifact>
-
getComparableArtifactType
Description copied from class:Artifact
Returns the base type to use for comparisons between Artifacts. All concrete implementations of this methods must be final.- Specified by:
getComparableArtifactType
in classArtifact<CompilationMetricsArtifact>
-