phosit
891908b801
Remove UNUSED
...
The `UNUSED` macro is used to mark a variable as unused but with a name.
Those usages are replaced with comments so that `UNUSED` can be removed.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-unused
2025-06-26 17:25:05 +02:00
Vladislav Belov
0b33921c06
Removes GL code from the common GPU profiler.
2025-04-16 22:38:34 +02:00
phosit
1a8757660f
Get config values without using return parameters
...
Many temporaries can be removed.
2025-04-09 12:51:21 +02:00
Lancelot de Ferrière
1b1e00d6c4
Remove profiler 2 spike/aggregated regions
...
This code is unused and was never actually useful.
Fixes #6620 .
2025-01-18 12:36:20 +01:00
Stan
6d12d25348
Replace usage of OSString().c_str() by OSString
...
Fixes #6604
2024-10-28 16:35:49 +01:00
Stan
1ca3e6d3bc
Fix two Clang warnings in Profiler2.cpp
...
Introduced in 3cbe96d24c
Differential Revision: https://code.wildfiregames.com/D5316
This was SVN commit r28173.
2024-08-02 09:40:57 +00:00
Stan
ca71c3cd90
Add a libfmt include forgotten in 421fbfd278
...
This was SVN commit r27453.
2023-01-16 13:07:19 +00:00
vladislavbelov
bd7b9b884a
Fixes out of bounds on each match start in Profiler2 introduced in 3cbe96d24c. Refs #6620
...
Differential Revision: https://code.wildfiregames.com/D4787
This was SVN commit r27108.
2022-10-04 19:28:21 +00:00
vladislavbelov
d9d19543b5
Adds std namespace to shared_ptr usages in network and engine.
...
This was SVN commit r25527.
2021-05-22 19:28:40 +00:00
vladislavbelov
c29423c723
Fixes revealed missed includes after e104b41be2.
...
This was SVN commit r25003.
2021-03-03 22:38:59 +00:00
wraitii
5ee8354e99
Fix windows SEH hook when crashing in an std::thread
...
Follows 107d3d461f and other 'pthread->std::thread' diffs.
Windows uses Structured Exception Handling to allow reporting errors
(both C++ and hardware) nicely. This works by wrapping the code in a
__try __catch block.
The pthread wrapper did this automatically, but we now need to do it
explicitly for std::thread.
Tested by: Stan
Differential Revision: https://code.wildfiregames.com/D3261
This was SVN commit r24530.
2021-01-10 08:39:54 +00:00
Stan
e009d322cc
Add missing files in 4942cabab5
...
This was SVN commit r24488.
2020-12-31 14:27:02 +00:00
Stan
421fbfd278
Make Profiler2 configurable in visual mode. Non visual doesn't load the config so it's not possible. Also update the profiler2 page to be able to change the port
...
Differential Revision: https://code.wildfiregames.com/D2444
This was SVN commit r24340.
2020-12-07 08:11:23 +00:00
vladislavbelov
8abc7c051b
Include Pyrogenesis.h and os_path.h where needed
...
These two headers were missing in various places, preventing build in
some cases.
Patch By: linkmauve
Tested By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2481
This was SVN commit r23321.
2020-01-02 18:07:40 +00:00
elexis
82f765b4cc
Add Profiler2 static const member definition, since the declaration itself is insufficient for const ref access, as revealed in debug builds but not release builds following f89f90d56e and 9965f43067.
...
Differential Revision: https://code.wildfiregames.com/D2158
This was SVN commit r22625.
2019-08-07 14:45:13 +00:00
elexis
f89f90d56e
Fix Profiler2 gcc 8 compiler warning about possible out-of-bounds array access and replace auto with their type, refs #5294 , 3cbe96d24c.
...
Tested with gcc 9, clang 8
This was SVN commit r22624.
2019-08-07 09:12:28 +00:00
wraitii
9ece3e7088
Pthread -> std::thread (2/7) - Remove pthread in Profilers
...
Use std::thread and thread_local instead of pthread specific calls.
Differential Revision: https://code.wildfiregames.com/D1916
This was SVN commit r22608.
2019-08-04 08:11:58 +00:00
wraitii
ba736916fc
Clean up ThreadUtil, use standard C++11 constructs instead of custom ones.
...
ThreadUtil shipped a scope lock and a mutex implementation, which can be
removed since we now have these in the standard library.
This lets us clean up this header which get included everywhere (through
profiler includes).
Tested By: Angen and Stan
Differential Revision: https://code.wildfiregames.com/D1915
This was SVN commit r22344.
2019-06-06 19:30:48 +00:00
vladislavbelov
962815c898
Fix build without PCH for some targets.
...
Patch By: Angen
Reviewed By: vladislavbelov
Tested By: Stan, vladislavbelov
Differential Revision: https://code.wildfiregames.com/D1361
This was SVN commit r21964.
2018-12-28 14:58:35 +00:00
elexis
43137fef3f
Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c).
...
Differential Revision: https://code.wildfiregames.com/D716
Refs 09e974e1cb
Reviewed By: bb
Change in agreement with leper.
This was SVN commit r19899.
2017-07-10 14:26:24 +00:00
elexis
417c84870c
Actually remove trailing tabs from source/.
...
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
elexis
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
wraitii
490ee7387f
Fix a double to float coercion and JS errors with empty threads in Profiler2 . Refs #4056
...
This was SVN commit r18424.
2016-06-22 16:46:49 +00:00
wraitii
3cbe96d24c
Revamp Profiler2 to make it more usable.
...
Features include new graphs to compare runtime of functions and runtimes
across reports, as well as new profiling functions that only profile
spikes.
This was SVN commit r18423.
2016-06-22 13:38:05 +00:00
Ykkrosh
e02d7ad949
Automatically replace %hs/%ls with %s in CLogger format strings.
...
Everything is char* now, so we don't need to mess around with different
string types.
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs perl
-pi -e'1 while
s/(LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR).*)%[hl]s/$1%s/g'
This was SVN commit r16187.
2015-01-22 20:36:24 +00:00
Ykkrosh
49e2ecea63
Automatically convert all CLogger format strings from wchar_t* to char*.
...
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs sed
-i 's/LOG\(MESSAGE\|MESSAGERENDER\|WARNING\|ERROR\)(L/LOG\1(/g'
This was SVN commit r16183.
2015-01-22 20:31:30 +00:00
Itms
7ada7dd2a8
Some tweaks to profiler2:
...
* separate the HTTP profiling server from the on-screen profiler
* allow shutting down the HTTP profiler
* print messages when enabling/disabling HTTP and GPU profilers
Patch by kingbasil, fixes #1862
This was SVN commit r15723.
2014-09-09 18:17:08 +00:00
Yves
5c4282a21c
Fixes a small memory leak in the profiler shutdown code.
...
This was SVN commit r14854.
2014-03-17 21:16:38 +00:00
Ykkrosh
4f6f0b7baf
Fix tests, and warnings, and non-PCH build
...
This was SVN commit r10801.
2011-12-23 13:01:29 +00:00
Ykkrosh
0c84a6125b
Support larger profiler JSON output
...
This was SVN commit r10781.
2011-12-21 11:28:24 +00:00
Ykkrosh
0ba908816f
Fix line endings
...
This was SVN commit r10635.
2011-11-29 21:04:38 +00:00
Ykkrosh
8492426a14
Rough support for profiling replay mode and scripts
...
This was SVN commit r10634.
2011-11-29 20:32:43 +00:00
Ykkrosh
ade841efdd
Avoid assertion failures on abnormal exit() (e.g. dumpSchema mode)
...
This was SVN commit r10530.
2011-11-13 21:37:12 +00:00
Ykkrosh
fbff0aa98d
Fix printf argument types
...
This was SVN commit r10529.
2011-11-13 18:31:06 +00:00
Ykkrosh
87b3b0856f
Fix warning
...
This was SVN commit r10496.
2011-11-09 22:35:31 +00:00
Ykkrosh
8617dfd0e1
Avoid fatal error on printf overflow in profiler
...
This was SVN commit r10495.
2011-11-09 18:29:08 +00:00
Ykkrosh
cfb79c3062
# Add GPU performance profiling support.
...
Add some profiler region attributes.
Render events in profile visualiser.
Change profiler from GPL to MIT.
This was SVN commit r10492.
2011-11-09 13:09:01 +00:00
Ykkrosh
8f3255f9c8
Fix tests and Atlas with new profiler
...
This was SVN commit r10471.
2011-11-05 23:09:31 +00:00
Ykkrosh
9965f43067
# Engine support for new profiling tool
...
This was SVN commit r10465.
2011-11-04 01:33:07 +00:00