Package com.google.gwt.core.ext.linker
Class ModuleMetricsArtifact
java.lang.Object
com.google.gwt.core.ext.linker.Artifact<ModuleMetricsArtifact>
com.google.gwt.core.ext.linker.ModuleMetricsArtifact
- All Implemented Interfaces:
Serializable,Comparable<Artifact<?>>
Captures some metrics from the module load and initial type oracle compile
step.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleMetricsArtifact(Class<? extends Linker> linker, int instanceId) -
Method Summary
Modifier and TypeMethodDescriptionprotected intPerforms comparison with an artifact of a compatible base type.protected final Class<ModuleMetricsArtifact> Returns the base type to use for comparisons between Artifacts.longString[]String[]inthashCode()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.setElapsedMilliseconds(long elapsedMilliseconds) setInitialTypes(Collection<String> initialTypes) setSourceFiles(String[] sourceFiles)
-
Constructor Details
-
ModuleMetricsArtifact
public ModuleMetricsArtifact() -
ModuleMetricsArtifact
-
-
Method Details
-
getElapsedMilliseconds
public long getElapsedMilliseconds()- Returns:
- wall clock time elapsed since start of module load to end of the initial type oracle build.
-
getInitialTypes
- Returns:
- the number of types resulting from the type oracle build which compiles all of the source files initially presented to the compiler.
-
getSourceFiles
- Returns:
- the source files initially presented to the compiler
-
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<ModuleMetricsArtifact>
-
setElapsedMilliseconds
- Parameters:
elapsedMilliseconds- wall clock time elapsed since start of module load to end of the initial type oracle build.
-
setInitialTypes
- Parameters:
initialTypes- the number of types resulting from the initial type oracle build which compiles all of the source files initially presented to the compiler.
-
setSourceFiles
- Parameters:
sourceFiles- the list of source files presented to the compiler on the module source path.
-
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<ModuleMetricsArtifact>
-
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<ModuleMetricsArtifact>
-