com.central1.profiler.reporting.template.Project Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-profiler Show documentation
Show all versions of maven-profiler Show documentation
Log and POST module execution times
The newest version!
package com.central1.profiler.reporting.template;
import com.google.common.base.Stopwatch;
import org.apache.maven.plugin.MojoExecution;
import java.util.ArrayList;
import java.util.List;
import static com.central1.profiler.reporting.Format.ms;
public class Project {
private final String name;
private final Stopwatch time;
private final List> mojosWithTime = new ArrayList>();
public Project(String name, Stopwatch time) {
this.name = name;
this.time = time;
}
// public void addMojoTime(EntryAndTime mojoWithTime) {
// mojosWithTime.add(mojoWithTime);
// }
public String getName() {
return name;
}
/*
public List> getMojosWithTime() {
return mojosWithTime;
}
*/
public Stopwatch getTime() {
return time;
}
@Override
public String toString() {
return String.format("{%s, %s, totalMojos = %d}", name, ms(time), mojosWithTime.size());
}
}