Commit Graph

42 Commits (0f49c5796a9b2753f38cc150715cf2374bdfdfb7)

Author SHA1 Message Date
flightlessmango 0f49c5796a
Merge pull request #671 from Joshua-Ashton/empty_crash
Fix crash when no frames were recorded
2 years ago
Joshua Ashton 437563fa77 Fix crash when no frames were recorded
This can happen with MangoApp + the Steam Deck UI as it doesn't commit when there is nothing going on
2 years ago
FlightlessMango 53b2a8b842 mangoapp: force log_interval 0 2 years ago
FlightlessMango 6f882115f0 initialize m_log_end 2 years ago
FlightlessMango 77e4d51d87 calculate and show mins in benchmark 2 years ago
FlightlessMango 3366120364 Move calc benchmark into logger 2 years ago
FlightlessMango 6c0965c27b Write a log summary 2 years ago
FlightlessMango a1b7b55a54 Use hudelements params in logging 2 years ago
FlightlessMango aab8730f69 exec: make sure LD_PRELOAD is unset 2 years ago
FlightlessMango 7212c79feb Logging: push param to benchmark calc 2 years ago
FlightlessMango f2dcf3f4b2 Rewrite of exec() 3 years ago
FlightlessMango 5fee3bc5e3 Change _params to pointer 3 years ago
jackun 9b6a39dfe9
sed s/gnu_linux/linux/g 3 years ago
FlightlessMango 3ac7772a55 Add universal param 3 years ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
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.
4 years ago
Alessandro Toia a061ca060f __gnu_linux__ shouldn't be caps 4 years ago
FlightlessMango ce7de641cf Don't use "and" and "not" in if statements 4 years ago
FlightlessMango eef6d8974a Only use popen/close on linux 4 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