Apollo  6.0
Open source self driving car software
Classes | Typedefs | Functions
apollo::cyber::logger Namespace Reference

Classes

class  AsyncLogger
 Wrapper for a glog Logger which asynchronously writes log messages. This class starts a new thread responsible for forwarding the messages to the logger, and performs double buffering. Writers append to the current buffer and then wake up the logger thread. The logger swaps in a new buffer and writes any accumulated messages to the wrapped Logger. More...
 
class  LogFileObject
 
class  Logger
 

Typedefs

typedef int32_t int32
 
typedef uint32_t uint32
 
typedef int64_t int64
 
typedef uint64_t uint64
 

Functions

int64_t CycleClock_Now ()
 
int64_t UsecToCycles (int64_t usec)
 
int32_t GetMainThreadPid ()
 
bool PidHasChanged ()
 
int32_t MaxLogSize ()
 
void FindModuleName (std::string *log_message, std::string *module_name)
 

Typedef Documentation

◆ int32

◆ int64

◆ uint32

◆ uint64

Function Documentation

◆ CycleClock_Now()

int64_t apollo::cyber::logger::CycleClock_Now ( )
inline

◆ FindModuleName()

void apollo::cyber::logger::FindModuleName ( std::string *  log_message,
std::string *  module_name 
)
inline

◆ GetMainThreadPid()

int32_t apollo::cyber::logger::GetMainThreadPid ( )

◆ MaxLogSize()

int32_t apollo::cyber::logger::MaxLogSize ( )
inline

◆ PidHasChanged()

bool apollo::cyber::logger::PidHasChanged ( )

◆ UsecToCycles()

int64_t apollo::cyber::logger::UsecToCycles ( int64_t  usec)
inline