Commit Graph

80 Commits (master)

Author SHA1 Message Date
Alesh Slovak 5d744d328a add various additional stats to log summary 4 days ago
flightlessmango 4aa92187a7 logging: fixed a crash when reloading config while logging 1 month ago
FlightlessMango ab3b22ec12 exec: refractor std::unique_ptr deleter 3 months ago
FlightlessMango 13164b01ad logging: fix percentiles miscalculation 8 months ago
Clayton Craft 22d2de4edd logging: include process RSS
Resident set size shows non-swapped memory usage of a process. This is
useful to have for comparing memory usage over time for the the process
being measured.
8 months ago
Clayton Craft 675202713d logging: include swap usage
This includes swap usage in the log output. It's useful for doing
analysis of memory config on performance, and can serve as useful input
when collecting other performance data since swapping almost always
impacts runtime perf.
8 months ago
Albert Sebastian f66700296b logging: fix bug where 97th percentile prints frametime instead of fps 9 months ago
FlightlessMango 08152325d4 logging: calc fps data using frametime 9 months ago
FlightlessMango 12567c68b0 logging: upload: print url to console 11 months ago
FlightlessMango c7ab967b92 Remove MANGOAPP ifdefs 1 year ago
FlightlessMango 06b46fd5d7 Fix building with mingw 1 year ago
Emil Velikov eecd451068 meson: build with -Werror=missing-declarations
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
FlightlessMango 302ceaa3e6 logging: flush after each write 1 year ago
FlightlessMango 25b170d480 logging: change frametime to float 1 year ago
FlightlessMango d6c7b3c101 logging: write to file while logging 1 year ago
Echo J ba7e2cb313 Logging: Switch to a different sleep function
This fixes a freeze with zink when automatic logging is enabled

I didn't test this on Windows, so please report any issues there
1 year ago
FlightlessMango e3995ffcbf mangoapp: compile using static mangohud_library 1 year ago
jackun dcabe6b33f
Explicitly include array 2 years ago
jackun 021df9b932
`env -u` doesn't affect "piped" commands, use `unset` instead 2 years ago
jackun a05dd84bf5
Don't use unsetenv in `exec`
Hopefully fixes #809
2 years ago
FlightlessMango 5f43fcd121 logger: control: use hudelements 2 years ago
tisim 732439b8e6 changing Logger class from struct pointer to 3 variables
removing commented line of code
2 years ago
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