Commit Graph

27 Commits (2f807a4c0da400606008195d15c6d7d9d733e3d2)

Author SHA1 Message Date
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun 4f3133c5da
Fix log file using `wine-preloader` etc instead of executable's filename 3 years ago
FlightlessMango 3261d12ad7 Add checking cpu scheduler 3 years ago
FlightlessMango 1a8689fbba Add gpu power to logs 3 years ago
FlightlessMango abe45c7485 Check log stream before writing 3 years ago
Witold Baryluk 4f20da781d Improve code for program name extraction
This cleans up the code, as well fixes the bug of not setting
program_name if the MANGOHUD_CONFIG env is specified.

Instead of global variable, that could be not-initialized
use a function to get a program name in logging.

While at it, revamp code and separate things into own functions,
and return by value, and make them easier to use / share code.
3 years ago
Alessandro Toia a061ca060f __gnu_linux__ shouldn't be caps 3 years ago
FlightlessMango ce7de641cf Don't use "and" and "not" in if statements 3 years ago
FlightlessMango eef6d8974a Only use popen/close on linux 3 years ago
FlightlessMango 3827fe96d4 Add autostart_log param 4 years ago
FlightlessMango d0c9176d6d Log frametime as nanoseconds 4 years ago
FlightlessMango 9ddd075b18 Get actual frametime for logs 4 years ago
FlightlessMango 3dc3c82522 Add frametime to log 4 years ago
FlightlessMango ac85815d82 Changed output_file to output_folder 4 years ago
FlightlessMango a06e01c7ef Merge branch 'develop' 4 years ago
FlightlessMango 4fd1c5f3e7 Fixed some basic errors 4 years ago
FlightlessMango 6a443f35ac Upload multiple logs 4 years ago
Lars Krämer 329725c134 Move Log uploading; Cleanup 4 years ago
Lars Krämer 4101237fdd Move logging functionality into a class 4 years ago
Lars Krämer 22026cbc60 Create MesaClock class, use chrono classes for time points/durations 4 years ago
FlightlessMango 118a105aa4 Check often if logUpdate has occured 4 years ago
FlightlessMango fbd60a102f Forgotten debugging in logging 4 years ago
FlightlessMango a9463ae06c Start logging after first update 4 years ago
FlightlessMango 0f171dbd9c Added labels to log csv file 4 years ago
Alan Witkowski 61a443bd50
add .csv extension to log file and rename function that generates the log filename suffix 4 years ago
larskraemer ecd84c8cc0
Logging options (#234)
* Added config options for logging

* Documentation

* Log everything

* Add RAM/VRAM usage to the log

* add loggingOn-check for memory usage

* Always init GPU stats

* Move functions from logging.h to logging.cpp, remove params from writeFile
4 years ago
FlightlessMango 99cefe96a5 Created logging.cpp 4 years ago