public class CompilerStatistics extends Object
| Constructor and Description |
|---|
CompilerStatistics()
Creates an object to keep track of statistics during the run of the pan
compiler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResults(long totalErrors)
Generates a terse String representation of the statistics.
|
void |
incrementFinishedTasks(TaskResult.ResultType type)
Increase the count of the number of tasks of the given type that have
finished successfully.
|
void |
incrementStartedTasks(TaskResult.ResultType type)
Increase the count of the number of tasks of the given type that have
been started.
|
void |
setBuildTime(long buildTime)
Define the total (clock) time for a complete build in milliseconds.
|
void |
setFileCount(long fileCount)
The total number of files which were processed by the compiler.
|
void |
updateMemoryInfo()
Take a snapshot of the current memory usage of the JVM and update the
high-water marks.
|
public CompilerStatistics()
public void setBuildTime(long buildTime)
buildTime - wall-clock build timepublic void setFileCount(long fileCount)
fileCount - number of processed filespublic void incrementStartedTasks(TaskResult.ResultType type)
type - type of task that was startedpublic void incrementFinishedTasks(TaskResult.ResultType type)
type - type of task that finishedpublic void updateMemoryInfo()
public String getResults(long totalErrors)
Copyright © 2014 Quattor. All Rights Reserved.