Commit Graph

11 Commits (e170e64f9cfe17a39a5b46f311933af85c2caf12)

Author SHA1 Message Date
FlightlessMango bff9958284 Changed pthreads to std::thread 4 years ago
André Almeida f07aea54b6 logging: check if duration is enabled before checking if it has expired
If we check if log_duration is enabled before checking if it has expired
we can save some math and comparison instructions on every log write.
4 years ago
André Almeida 0a942512e9 logging: don't sleep if time is over 4 years ago
André Almeida 0303f8de28 logging: write log to a memory buffer
Instead of writing every line of the log to the file (and, consequently,
to the disk), write to a memory buffer first and after the log finishes
flush from memory to disk. This improve the performance of the tool, since
it avoids making the program blocked by disk IO.
4 years ago
André Almeida 4830268a11 logging: fix indentation 4 years ago
FlightlessMango e24f5dfc8b added log_duration param and updated readme 4 years ago
FlightlessMango d1bdf71580 added MANGOHUD_OUTPUT to params as output_file 4 years ago
FlightlessMango d20a92a0c4 Write system info to log file 4 years ago
jackun 6d3d869586
Fix system info and stats parsing 4 years ago
telans e82e3721b7
update header location & duration_env 4 years ago
FlightlessMango dd78c02ed8 MangoHud Standalone
Co-authored-by: jackun <jack.un@gmail.com>
Co-authored-by: telans <telans@protonmail.com>
4 years ago