class StatusLine

Defined at line 35 of file ../../src/zircon/bin/hwstress/status.h

Provides a simple console status line.

Users can either |Set| an ephemeral status line (such as a progress

bar or timer) or |Log| lines permanently to the console.

Ephemeral status lines are automatically cleared when a new status

line is provided or the class is destroyed.

Thread compatible.

Public Methods

void StatusLine (LogLevel level)

Defined at line 53 of file ../../src/zircon/bin/hwstress/status.cc

void Log (std::string_view s)

Log the given string to console, ensuring that the current status

line is re-displayed afterwards.

If |s| doesn't contain a trailing newline, one is added.

Defined at line 55 of file ../../src/zircon/bin/hwstress/status.cc

void Log (const char * fmt)

Defined at line 78 of file ../../src/zircon/bin/hwstress/status.cc

void Log (const char * fmt, va_list ap)

Defined at line 73 of file ../../src/zircon/bin/hwstress/status.cc

void Set (std::string_view status)

Update the current status line.

Defined at line 85 of file ../../src/zircon/bin/hwstress/status.cc

void Set (const char * fmt)

Defined at line 102 of file ../../src/zircon/bin/hwstress/status.cc

void Set (const char * fmt, va_list ap)

Defined at line 97 of file ../../src/zircon/bin/hwstress/status.cc

void Verbose (std::string_view s)

Print a verbose logging statement.

Defined at line 118 of file ../../src/zircon/bin/hwstress/status.cc

void Verbose (const char * fmt)

Defined at line 109 of file ../../src/zircon/bin/hwstress/status.cc