Commit Graph

16 Commits (6cebbba7327d7fc502209a63a2b7cf828f0b71a7)

Author SHA1 Message Date
FlightlessMango 357a819d67 Removed some debugging in logging 4 years ago
FlightlessMango 096fb626a3 Fixed logging date 4 years ago
FlightlessMango 75f9128ce5 Redesigned logging, adding quick benchmark 4 years ago
FlightlessMango 0964f517b7 Change LogData previous to uint64_t 4 years ago
FlightlessMango 2e1861ea09 Changed elapsedlog to int64_t 4 years ago
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.
5 years ago
André Almeida 0a942512e9 logging: don't sleep if time is over 5 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.
5 years ago
André Almeida 4830268a11 logging: fix indentation 5 years ago
FlightlessMango e24f5dfc8b added log_duration param and updated readme 5 years ago
FlightlessMango d1bdf71580 added MANGOHUD_OUTPUT to params as output_file 5 years ago
FlightlessMango d20a92a0c4 Write system info to log file 5 years ago
jackun 6d3d869586
Fix system info and stats parsing 5 years ago
telans e82e3721b7
update header location & duration_env 5 years ago
FlightlessMango dd78c02ed8 MangoHud Standalone
Co-authored-by: jackun <jack.un@gmail.com>
Co-authored-by: telans <telans@protonmail.com>
5 years ago