Package frc.lib.profiling
Interface ProfileLoggingFormat
public interface ProfileLoggingFormat
Describes how a profile is written to a file.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(OutputStream outputStream) Write information before seeing any profiles.intcompare(String leftName, LoggingProfiler.LocatedInfo leftInfo, String rightName, LoggingProfiler.LocatedInfo rightInfo) Comparison function used for sorting profile information.voidend(OutputStream outputStream) Write information after seeing all profiles.voidwrite(String name, LoggingProfiler.LocatedInfo info, double timeDivisor, OutputStream outStream) Write a profile to the file specified inoutStream.
-
Method Details
-
compare
int compare(String leftName, LoggingProfiler.LocatedInfo leftInfo, String rightName, LoggingProfiler.LocatedInfo rightInfo) Comparison function used for sorting profile information. -
write
void write(String name, LoggingProfiler.LocatedInfo info, double timeDivisor, OutputStream outStream) Write a profile to the file specified inoutStream. -
begin
Write information before seeing any profiles. -
end
Write information after seeing all profiles.
-