class LogBuffer

Defined at line 31 of file ../../src/developer/forensics/feedback/attachments/system_log.h

Stores up to |capacity| bytes of system log messages, dropping the earliest messages when the

stored messages occupy too much space.

Public Methods

void ~LogBuffer ()

Defined at line 35 of file ../../src/developer/forensics/feedback/attachments/system_log.h

bool SafeAfterInterruption ()

It's safe continue to writing to a LogBuffer if the log source has been interrupted.

Defined at line 47 of file ../../src/developer/forensics/feedback/attachments/system_log.h

void LogBuffer (StorageSize capacity, RedactorBase * redactor)

Defined at line 48 of file ../../src/developer/forensics/feedback/attachments/system_log.cc

bool Add (LogSink::MessageOr message)

Adds |message| to the buffer and drops messages as required to keep the total size under

|capacity|. Always returns true.

Messages are assumed to be received mostly in order.

Defined at line 51 of file ../../src/developer/forensics/feedback/attachments/system_log.cc

void NotifyInterruption ()

Records the log stream was interrupted and clears the contents.

Defined at line 103 of file ../../src/developer/forensics/feedback/attachments/system_log.cc

std::string ToString ()

Defined at line 117 of file ../../src/developer/forensics/feedback/attachments/system_log.cc

void ExecuteAfter (zx::time_boot timestamp, ::fit::closure action)

Executes |action| after a message with a time greater than or equal to |timestamp| is received

or NotifyInterruption is called.

Defined at line 136 of file ../../src/developer/forensics/feedback/attachments/system_log.cc