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
ModifierConstructorDescriptionprotected
ModuleMetricsArtifact
(Class<? extends Linker> linker, int instanceId) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Performs comparison with an artifact of a compatible base type.protected final Class
<ModuleMetricsArtifact> Returns the base type to use for comparisons between Artifacts.long
String[]
String[]
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.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: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<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: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<ModuleMetricsArtifact>
-
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<ModuleMetricsArtifact>
-