ReportFile class final
A StringSink that writes to a file, and optionally echoes to stdout.
Every write goes to disk at once, so a long benchmark run that is
interrupted keeps everything written so far. Pass one as the out of
runComparison to stream tables into a report.
- Implemented types
Constructors
- ReportFile(String path, {bool echo = true})
-
Creates or truncates the file at
path.factory
Properties
Methods
-
close(
) → void - Closes the file. Further writes throw.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Object? object) → void -
Writes the string representation of
object.override -
writeAll(
Iterable objects, [String separator = '']) → void -
Writes the elements of
objectsseparated byseparator.override -
writeCharCode(
int charCode) → void -
Writes a string containing the character with code point
charCode.override -
writeln(
[Object? object = '']) → void -
Writes the string representation of
objectfollowed by a newline.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited