Commit Graph

514 Commits

Author SHA1 Message Date
Kingsley McDonald
0e1fe708c8 make use of new float parsing function
i've also moved the input validation checks to the config parser, so that
warnings aren't displayed in the terminal output every time a benchmark is
run with an invalid percentile entry.
2020-06-23 19:01:55 +01:00
Kingsley McDonald
979c4d32ca oops! i didn't save changes from the merge conflict >.< 2020-06-23 18:51:51 +01:00
Kingsley McDonald
aa77a351de implement configurable benchmark percentiles. 2020-06-23 18:46:43 +01:00
jackun
0d03b5a150
meson: use gnu_symbol_visibility argument
This uses a meson builtin to handle -fvisibility=hidden.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
2020-06-21 22:55:13 +03:00
FlightlessMango
118a105aa4 Check often if logUpdate has occured 2020-06-21 13:47:22 +02:00
FlightlessMango
e957358786 Force a hw values update on log start 2020-06-21 13:44:12 +02:00
jackun
44060c2b80
Force blacklist re-check at certain points
Wine preloader that executed a non-blacklisted app may execute a blacklisted app,
or vice versa, and previous check applies to new app too.
2020-06-21 14:18:56 +03:00
FlightlessMango
fbd60a102f Forgotten debugging in logging 2020-06-20 17:35:21 +02:00
FlightlessMango
a9463ae06c Start logging after first update 2020-06-20 17:17:54 +02:00
FlightlessMango
0f171dbd9c Added labels to log csv file 2020-06-20 14:05:21 +02:00
jackun
03ec318d00
Make find_*_ptr function pointers static 2020-06-19 23:44:57 +03:00
jackun
2da02ee553
Try to limit exported symbols with --version-script 2020-06-19 23:42:30 +03: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
jackun
612d3b761d
Merge pull request #237 from larskraemer/float_parser
First implementation of custom float parsing
2020-06-19 18:49:57 +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
jackun
66ddada43c
Fix readlink overloading for fortified musl
Issue #231
2020-06-19 16:15:49 +03:00
jackun
6887abbea8
Just <limits.h> 2020-06-19 16:01:18 +03:00
jackun
edf9f95517
Use std::locale::classic with confiog file ifstream, just in case 2020-06-19 16:01:18 +03:00
FlightlessMango
916ef02eb2 Revert "Add readlink.c to meson"
This reverts commit 56933049d0.
2020-06-19 14:48:38 +02:00
FlightlessMango
b614734ab6 Revert "Trying to fix issue #231 musl"
This reverts commit 01233e5f1f.
2020-06-19 14:47:24 +02:00
FlightlessMango
56933049d0 Add readlink.c to meson 2020-06-19 14:23:43 +02:00
FlightlessMango
01233e5f1f Trying to fix issue #231 musl 2020-06-19 14:22:09 +02:00
FlightlessMango
8f22ebae44 Also check for pci.ids in /usr/share/misc/ 2020-06-19 14:05:46 +02:00
FlightlessMango
e2ec80d84e Upload log keybind setup 2020-06-19 13:59:19 +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
064c285f31 permit_upload and upload_log params 2020-06-19 13:57:44 +02:00
FlightlessMango
f14c9a7587 Moved exec function in to logging.h 2020-06-19 13:56:45 +02:00
Lars Krämer
3421ad269a Use locale::classic 2020-06-19 13:44:25 +02:00
jackun
441f1d3f3f
Use std::locale::classic() in parse_float() 2020-06-19 14:43:28 +03:00
jackun
d9a09670d8
Replace std::stoi with something that doesn't throw 2020-06-19 13:47:52 +03:00
jackun
e1fb2fbf88
Parse floats in C locale, hopefully 2020-06-19 13:47:30 +03:00
Lars Krämer
4d22927776 Use a stringstream 2020-06-19 12:07:16 +02:00
Lars Krämer
01df8149ab sign bug 2020-06-19 04:26:41 +02:00
Lars Krämer
b8571c27e2 First implementation of custom float parsing 2020-06-19 03:36:55 +02:00
FlightlessMango
8e34e752e5 Merge branch 'master' into develop 2020-06-18 18:15:45 +02:00
Kingsley McDonald
6178c5859c adjust benchHeight for 0.1% and fix percentages. 2020-06-18 15:32:59 +01:00
Kingsley McDonald
053a1d8a44 add 0.1% lows to the brief benchmark overlay 2020-06-18 13:35:46 +01:00
jackun
5ec6519832
Add media_player_order to set media player metadata order 2020-06-13 22:00:36 +03:00
Stephan Lachnit
d956f60f86 remove old system nvml build option
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-06-12 13:37:12 +03:00
FlightlessMango
b9c00fc510 Check pci.ids without gpu_stats 2020-06-12 04:21:19 +02:00
FlightlessMango
38a78fa01e Fix logging window if bg alpha is 0 2020-06-12 04:16:39 +02:00
Rémi Verschelde
f915d890f2 Fix -Wformat-security warning with GCC 10.1 2020-06-11 13:47:24 +02:00
FlightlessMango
71cbd66afb Fixing cpu temp for core 2 duo CPUs 2020-06-11 14:02:56 +02:00
FlightlessMango
d41909321a More width fixing 2020-06-11 13:59:15 +02:00
FlightlessMango
0728d49a1d Fix width with no params 2020-06-11 13:50:08 +02:00
FlightlessMango
df631a2343 Reduced width with io rw 2020-06-11 12:33:07 +02:00
FlightlessMango
e9b1b70ebc Fixed nextRow for gpu_power 2020-06-11 09:03:24 +02:00
FlightlessMango
135f3a5009 Fixing compiler warnings and removing control 2020-06-11 08:58:29 +02:00
FlightlessMango
59268a34b3 Always do nextRow() with core_clock 2020-06-11 08:54:11 +02:00
FlightlessMango
bc5d41f921 Changed IO rd/wr to rw 2020-06-11 08:03:58 +02:00
FlightlessMango
4a5e05c979 Trim gpuName from pci.ids 2020-06-11 07:58:19 +02:00
FlightlessMango
572ba69e3e More width fixing 2020-06-11 04:50:39 +02:00
FlightlessMango
816d6ca515 Fixing hud width issues 2020-06-11 04:48:26 +02:00
jackun
b68f78028d
Fix "IO RD/RW" typo
Also micro-micro-micro optimization, probably: move READ/WRITE if statement before WRITE
as you'd probably find it more useful than just WRITE.
2020-06-10 22:00:55 +03:00
FlightlessMango
6d1ed9751d Changed default keybinds 2020-06-10 08:34:37 +02:00
Valters
40017bc1e6
Change blacklist type (#204)
* Set blacklist to std::vector<std::string>

Fix some strange crashes.

Co-authored-by: jackun <jack.un@gmail.com>
2020-06-09 19:00:35 +03:00
jackun
1495b1e88f
ifdef guard nvml header 2020-06-09 14:16:02 +03:00
jackun
953c8d0e0f
Add meson option with_nvml 2020-06-09 13:44:41 +03:00
jackun
a236af66ee
Lock metadata mutexes in case they are cleared by inotify thread 2020-06-08 19:09:10 +03:00
jackun
467c53d22f
Keep track of notifier thread to make sure it exits before notify_thread struct is freed 2020-06-08 19:08:01 +03:00
jackun
31f9cce720
[COMMENTED] Make inotify monitor new per-app config file or if delete, the main config file again
Needs to be triggered by main config file change.
FIXME what if there's no config file?
2020-06-08 19:03:20 +03:00
jackun
2220cb9d74
Decouple engine_version from fps 2020-06-06 13:00:59 +03:00
jackun
16b05dfc5e
Show gpu core clock or power usage in 4th column or both on next row if both are enabled 2020-06-06 12:50:13 +03:00
jackun
91ccde4969
[blacklist] Add SocialClubHelper.exe
No much difference but at least doesn't spam log as much
2020-06-06 12:35:55 +03:00
FlightlessMango
3d503c9f29 Don't enable histogram with full param 2020-06-06 00:49:24 +02:00
jackun
b837ce930e
[whitespace] fix indentation from gpu_name to arch 2020-06-05 15:46:37 +03:00
jackun
1f81889d1b
Show bitness in library loaders 2020-06-05 15:28:30 +03:00
FlightlessMango
db151bb236 Add log_interval check to per frame log write 2020-06-05 06:14:47 +02:00
FlightlessMango
52989a727e Cleaning up for after change to log_interval 2020-06-04 05:17:00 +02:00
FlightlessMango
d8727110b0 Replaced log_period env with log_interval param 2020-06-04 00:52:11 +02:00
FlightlessMango
128fbd4b88 Per frame logging use output_file and date 2020-06-04 00:47:01 +02:00
FlightlessMango
4bdd252393 Load 32bit libs if they exist with 64bit bin 2020-06-03 22:00:48 +02:00
Valters
6cebbba732
Always print blacklist info to STREAM 2020-06-02 16:47:58 +03:00
Valters
4721281952
Add LeagueClient{,UxRender} to blacklist 2020-06-02 16:47:58 +03:00
FlightlessMango
33a5ad6571 Format gpu_text and cpu_text in textColored 2020-06-01 20:18:15 +02:00
FlightlessMango
dd1667bf3e Fixed typo 2020-06-01 03:49:34 +02:00
FlightlessMango
2d0ba9a076 Params to override cpu/gpu text 2020-06-01 02:08:35 +02:00
FlightlessMango
0e3508dcf0 Check if pci.ids was found 2020-05-30 18:02:14 +02:00
jackun
699de56fa1
[dbus] clear non-main players' metadata on dbus deinit 2020-05-28 20:55:30 +03:00
jackun
72602fab89
[dbus] remove missed exceptions; set dbus call timeout to 2 seconds 2020-05-28 20:52:32 +03:00
jackun
c04658456a
Wider glyph ranges for custom font; media player text scaling with font_scale_media_player param 2020-05-24 16:49:11 +03:00
FlightlessMango
c254347688 Use histogram in benchmark too 2020-05-24 17:28:29 +02:00
FlightlessMango
ac926bbfd5 Added histogram param 2020-05-24 17:17:17 +02:00
jackun
15ed8df404
Fix keybinds init when building without X11 2020-05-24 14:14:10 +03:00
jackun
5ad67fe446
Remove unused vars 2020-05-24 14:14:10 +03:00
FlightlessMango
078617f999 Added param for engine version 2020-05-23 23:16:08 +02:00
FlightlessMango
0e396186a6 [OpenGL] Always use QueryDrawable 2020-05-22 22:01:14 +02:00
jackun
ff48525313
Consolidated amdgpu file handles to a struct and add gpu_power param to show power usage for amdgpu/nvml 2020-05-22 15:44:34 +03:00
jackun
5c3c8a5ac9
Add nvmlDeviceGetPowerUsage import 2020-05-22 15:38:54 +03:00
jackun
9b595cef1a
[dbus] clear metadata on re-init; don't use exceptions 2020-05-22 15:00:35 +03:00
jackun
5057a47b05
Potential buffer overflow, use snprintf instead 2020-05-21 20:23:33 +03:00
jackun
159305bbc7
Use display_time instead of recalculating 2020-05-21 20:19:46 +03: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
1d375fd155 Removed crosshair 2020-05-20 18:21:14 +02:00
FlightlessMango
434aa04356 Fixed bench position even more 2020-05-19 12:57:17 +02:00
FlightlessMango
7f9bb2e6b8 Fixed mistake in bench positioning 2020-05-19 12:38:03 +02:00
FlightlessMango
54f83ee3d6 Corrected position and sizing for quick bench 2020-05-18 01:09:24 +02:00