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.
2023-09-19 20:49:55 +02:00
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.
2023-09-19 20:49:55 +02:00
FlightlessMango
25b170d480
logging: change frametime to float
2023-01-23 15:36:00 +01:00
FlightlessMango
d6c7b3c101
logging: write to file while logging
2023-01-23 15:16:17 +01:00
tisim
732439b8e6
changing Logger class from struct pointer to 3 variables
...
removing commented line of code
2022-08-01 01:26:10 +02:00
jackun
f680c28f1f
Generalize control over socket so it works with OpenGL too
2022-05-23 18:07:39 +03:00
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>
2022-03-30 10:20:27 +03:00
jackun
8af07b4945
Move logging()
to Logger struct
...
Stopgap to use same m_params while waiting for proper multithreading-safe overlay_params fix.
2022-03-06 21:31:17 +02:00
FlightlessMango
9c15d093d6
Only reset logger if param is not set
2022-01-25 11:18:28 +01:00
FlightlessMango
3366120364
Move calc benchmark into logger
2022-01-06 14:54:45 +01:00
FlightlessMango
3261d12ad7
Add checking cpu scheduler
2021-02-10 09:16:51 +01:00
FlightlessMango
1a8689fbba
Add gpu power to logs
2021-02-07 07:18:54 +01:00
FlightlessMango
9af4ac546f
No need to convert cpu_load
2020-11-27 15:53:49 +01:00
FlightlessMango
3827fe96d4
Add autostart_log param
2020-11-27 15:12:38 +01:00
FlightlessMango
d0c9176d6d
Log frametime as nanoseconds
2020-09-02 07:50:56 +02:00
FlightlessMango
3dc3c82522
Add frametime to log
2020-08-21 20:16:00 +02:00
FlightlessMango
6a443f35ac
Upload multiple logs
2020-08-02 01:10:21 +02:00
larskraemer
a28931ef6b
General cleanup ( #272 )
...
* Cleanup unused struct fields, use uniform include guards
2020-07-06 20:31:40 +03:00
Lars Krämer
329725c134
Move Log uploading; Cleanup
2020-06-29 16:33:21 +02:00
Lars Krämer
4101237fdd
Move logging functionality into a class
2020-06-29 16:33:17 +02:00
Lars Krämer
22026cbc60
Create MesaClock class, use chrono classes for time points/durations
2020-06-24 14:41:34 +02:00
FlightlessMango
a9463ae06c
Start logging after first update
2020-06-20 17:17:54 +02:00
Alan Witkowski
61a443bd50
add .csv extension to log file and rename function that generates the log filename suffix
2020-06-19 18:57:42 +03:00
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
2020-06-19 18:32:04 +03:00
FlightlessMango
99cefe96a5
Created logging.cpp
2020-06-19 16:28:55 +02:00
FlightlessMango
8d6ff5bd25
upload log functions
2020-06-19 13:59:07 +02:00
FlightlessMango
6a28a8f7f1
Track log files for current session
2020-06-19 13:58:53 +02:00
FlightlessMango
f14c9a7587
Moved exec function in to logging.h
2020-06-19 13:56:45 +02:00
FlightlessMango
135f3a5009
Fixing compiler warnings and removing control
2020-06-11 08:58:29 +02:00
FlightlessMango
52989a727e
Cleaning up for after change to log_interval
2020-06-04 05:17:00 +02:00
FlightlessMango
128fbd4b88
Per frame logging use output_file and date
2020-06-04 00:47:01 +02:00
FlightlessMango
357a819d67
Removed some debugging in logging
2020-05-20 19:34:12 +02:00
FlightlessMango
096fb626a3
Fixed logging date
2020-05-20 19:31:11 +02:00
FlightlessMango
75f9128ce5
Redesigned logging, adding quick benchmark
2020-05-16 13:35:50 +02:00
FlightlessMango
0964f517b7
Change LogData previous to uint64_t
2020-05-14 14:54:57 +02:00
FlightlessMango
2e1861ea09
Changed elapsedlog to int64_t
2020-05-13 05:58:00 +02:00
FlightlessMango
bff9958284
Changed pthreads to std::thread
2020-05-01 23:55:21 +02:00
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.
2020-04-09 15:58:05 -03:00
André Almeida
0a942512e9
logging: don't sleep if time is over
2020-04-09 15:50:39 -03:00
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.
2020-04-09 15:50:39 -03:00
André Almeida
4830268a11
logging: fix indentation
2020-04-08 15:14:13 -03:00
FlightlessMango
e24f5dfc8b
added log_duration param and updated readme
2020-03-13 16:27:45 +01:00
FlightlessMango
d1bdf71580
added MANGOHUD_OUTPUT to params as output_file
2020-03-13 16:06:57 +01:00
FlightlessMango
d20a92a0c4
Write system info to log file
2020-02-05 07:07:23 +01:00
jackun
6d3d869586
Fix system info and stats parsing
2020-02-04 23:23:01 +02:00
telans
e82e3721b7
update header location & duration_env
2020-01-29 23:24:46 +13:00
FlightlessMango
dd78c02ed8
MangoHud Standalone
...
Co-authored-by: jackun <jack.un@gmail.com>
Co-authored-by: telans <telans@protonmail.com>
2020-01-28 05:11:05 +01:00