Flutter Engine
The Flutter Engine
|
#include <BenchLogger.h>
Public Member Functions | |
BenchLogger () | |
~BenchLogger () | |
bool | SetLogFile (const char file[]) |
void | logError (const char msg[]) |
void | logError (const SkString &str) |
void | logProgress (const char msg[]) |
void | logProgress (const SkString &str) |
Class that allows logging to a file while simultaneously logging to stdout/stderr.
Definition at line 20 of file BenchLogger.h.
BenchLogger::BenchLogger | ( | ) |
Definition at line 12 of file BenchLogger.cpp.
BenchLogger::~BenchLogger | ( | ) |
Not virtual, since this class is not intended to be subclassed.
Definition at line 15 of file BenchLogger.cpp.
|
inline |
Log an error to stderr, taking a C style string as input.
Definition at line 38 of file BenchLogger.h.
|
inline |
Log an error to stderr, taking an SkString as input.
Definition at line 43 of file BenchLogger.h.
|
inline |
Log the progress of the bench tool to both stdout and the log file specified by SetLogFile, if any, taking a C style string as input.
Definition at line 49 of file BenchLogger.h.
|
inline |
Log the progress of the bench tool to both stdout and the log file specified by SetLogFile, if any, taking an SkString as input.
Definition at line 58 of file BenchLogger.h.
bool BenchLogger::SetLogFile | ( | const char | file[] | ) |
Specify a file to write progress logs to. Unless this is called with a valid file path, BenchLogger will only write to stdout/stderr.
Definition at line 21 of file BenchLogger.cpp.