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<?>>

@Transferable public class CompilationMetricsArtifact extends Artifact<CompilationMetricsArtifact>
Captures some metrics from the compile permutations step of the build.
See Also:
  • Constructor Details

    • CompilationMetricsArtifact

      public CompilationMetricsArtifact(int permutationId)
    • CompilationMetricsArtifact

      protected CompilationMetricsArtifact(Class<? extends Linker> linker, int permutationId)
  • 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

      public String getPermutationDescription()
      Returns:
      human readable description of the permutation
    • hashCode

      public int hashCode()
      Description copied from class: Artifact
      The class which is returned from Artifact.getComparableArtifactType() must declare a final implementation which returns the same hash code for objects for which Artifact.compareToComparableArtifact(Artifact) returns 0.
      Specified by:
      hashCode in class Artifact<CompilationMetricsArtifact>
    • setCompileElapsedMilliseconds

      public CompilationMetricsArtifact setCompileElapsedMilliseconds(long compileElapsedMilliseconds)
      Parameters:
      compileElapsedMilliseconds - wall clock time elapsed since start of compilation
    • setElapsedMilliseconds

      public CompilationMetricsArtifact setElapsedMilliseconds(long elapsedMilliseconds)
      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

      public CompilationMetricsArtifact setPermutationDescription(String permutationDescription)
      Parameters:
      permutationDescription - human readable description of the permutation
    • compareToComparableArtifact

      protected int compareToComparableArtifact(CompilationMetricsArtifact o)
      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 same Artifact.hashCode().
      Specified by:
      compareToComparableArtifact in class Artifact<CompilationMetricsArtifact>
    • getComparableArtifactType

      protected final Class<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 class Artifact<CompilationMetricsArtifact>