Commit Graph

58 Commits (14dcd153ae5df7a3d606841417d9a80556cb3e42)

Author SHA1 Message Date
FlightlessMango 14dcd153ae control: send msg when log stops 2 years ago
FlightlessMango ef4ace2e2a logging: versioning 2 years ago
jackun 0916dadea6
Convert some "printfs" to spdlog 2 years ago
jackun f680c28f1f
Generalize control over socket so it works with OpenGL too 2 years ago
FlightlessMango 10e17b3153 Use Hudelements params in logging 2 years ago
FlightlessMango 5d6ebe2f38 Logging: use same data for benchmark and summary 2 years ago
Emil Velikov 6f85e388e5
overlay_params: mutate log_interval just after parsing
Currently we mutate the log_interval (if mangoapp is built), within the
logger itself. Move that to parse_overlay_config() where the actual
value is being parsed/set.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov 2b7db32f54
Const annotate overlay_params& across the board
Most of the API does not modify it, so annotate it as const.
This makes it earlier to reason what's happening.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
jackun 8af07b4945
Move `logging()` to Logger struct
Stopgap to use same m_params while waiting for proper multithreading-safe overlay_params fix.
2 years ago
Emil Velikov e3de89e475 Couple of whitespace fixes
Automatically picked by my editor, while fixing the warnings with prior
commits.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov c5748a3154 Reorder Logger() constructor args
Currently the order varies across the struct and constructor. As a nice
reminder GCC will throw a lovely warning at us. Fix the ordering.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
FlightlessMango 3f2db318c5 Some fixes for windows compiling 2 years ago
FlightlessMango 8ddbcc3803 don't average log fps 2 years ago
Lukáš Horáček ed4c8bca80 logging: Initialize total, total_cpu, total_gpu variables 2 years ago
FlightlessMango 9c7f91eccd clearer headers in summary 2 years ago
Joshua Ashton f462c7ff76 Write log file in mangoapp
This was only writing the summary, which is rather useless.
2 years ago
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() 2 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.
3 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