Commit Graph

48 Commits (master)

Author SHA1 Message Date
flightlessmango 1d357e17c8 autostart_log: rework without threading
Using any kind of sleep or while loop causes a crash when running in wine.
So let's not do that.
5 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
FlightlessMango 25b170d480 logging: change frametime to float 1 year ago
FlightlessMango d6c7b3c101 logging: write to file while logging 1 year ago
tisim 732439b8e6 changing Logger class from struct pointer to 3 variables
removing commented line of code
2 years ago
jackun f680c28f1f
Generalize control over socket so it works with OpenGL too 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
FlightlessMango 9c15d093d6 Only reset logger if param is not set 2 years ago
FlightlessMango 3366120364 Move calc benchmark into logger 2 years ago
FlightlessMango 3261d12ad7 Add checking cpu scheduler 3 years ago
FlightlessMango 1a8689fbba Add gpu power to logs 3 years ago
FlightlessMango 9af4ac546f No need to convert cpu_load 4 years ago
FlightlessMango 3827fe96d4 Add autostart_log param 4 years ago
FlightlessMango d0c9176d6d Log frametime as nanoseconds 4 years ago
FlightlessMango 3dc3c82522 Add frametime to log 4 years ago
FlightlessMango 6a443f35ac Upload multiple logs 4 years ago
larskraemer a28931ef6b
General cleanup (#272)
* Cleanup unused struct fields, use uniform include guards
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 a9463ae06c Start logging after first update 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
FlightlessMango 8d6ff5bd25 upload log functions 4 years ago
FlightlessMango 6a28a8f7f1 Track log files for current session 4 years ago
FlightlessMango f14c9a7587 Moved exec function in to logging.h 4 years ago
FlightlessMango 135f3a5009 Fixing compiler warnings and removing control 4 years ago
FlightlessMango 52989a727e Cleaning up for after change to log_interval 4 years ago
FlightlessMango 128fbd4b88 Per frame logging use output_file and date 4 years ago
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.
4 years ago
André Almeida 0a942512e9 logging: don't sleep if time is over 4 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.
4 years ago
André Almeida 4830268a11 logging: fix indentation 4 years ago
FlightlessMango e24f5dfc8b added log_duration param and updated readme 4 years ago
FlightlessMango d1bdf71580 added MANGOHUD_OUTPUT to params as output_file 4 years ago
FlightlessMango d20a92a0c4 Write system info to log file 4 years ago
jackun 6d3d869586
Fix system info and stats parsing 4 years ago
telans e82e3721b7
update header location & duration_env 4 years ago
FlightlessMango dd78c02ed8 MangoHud Standalone
Co-authored-by: jackun <jack.un@gmail.com>
Co-authored-by: telans <telans@protonmail.com>
4 years ago