Commit Graph

244 Commits

Author SHA1 Message Date
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
andriy tylychko
6bf3101dcd deprecated FTicker and family and replaced by thread-safe FTSTicker
#jira UE-120090
#rb francis.hurteau


#ROBOMERGE-SOURCE: CL 17176325 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17176374 by andriy tylychko in ue5-release-engine-test branch]
2021-08-16 11:09:22 -04:00
martin ridgers
a0fd56f78d Convert Stats and Csv tracing to use array/string type trace event fields instead of attachments
#rb cm
#rnx

#ROBOMERGE-SOURCE: CL 17048347 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v850-17047176)

[CL 17048351 by martin ridgers in ue5-release-engine-test branch]
2021-08-04 08:03:55 -04:00
jason nadro
d2fe3d0c52 Fix build warning.
#rb Dave.Jones2

#ROBOMERGE-SOURCE: CL 16929525 via CL 16929532
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16929542 by jason nadro in ue5-release-engine-test branch]
2021-07-22 15:26:04 -04:00
jason nadro
bc82444ea1 Respect memory flag on stats so we can pretty print that stat as memory (in MBs).
- This makes the output of memreport much easier to read:

812.081MB  -  StaticMesh Total Memory - STAT_StaticMeshTotalMemory2 - STATGROUP_MemoryStaticMesh - STATCAT_Advanced

#rb Dave.Jones2

#ROBOMERGE-SOURCE: CL 16926919 via CL 16927028
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16927051 by jason nadro in ue5-release-engine-test branch]
2021-07-22 13:22:59 -04:00
andriy tylychko
e38e3d02a9 conditional compilation for "StatsThread as a pipe" with an ability to turn back to "StatsThread as a named thread"
#jira UE-117540

#ROBOMERGE-SOURCE: CL 16686290 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16686297 by andriy tylychko in ue5-release-engine-test branch]
2021-06-16 07:11:54 -04:00
Marc Audy
3cfedaade8 Fix PVS warning V502 when comparing against NAME_None in a trinary
[CL 16137741 by Marc Audy in ue5-main branch]
2021-04-28 01:58:36 -04:00
Jamie Dale
4afb7ce6bb Made EName an enum class to prevent implicit conversion to int
The following code would call the int overload rather than the name overload when passed an EName constant, which could easily lead to confusion and bugs:
    using FMyId = uint8;
    void DoThing(FName);
    void DoThing(FMyId);
    DoThing(NAME_Actor);

The change to use enum class requires that any code that actually deals with EName as an int (mostly internal name code and serialisation) be updated to explicitly cast, but prevents the implicit conversion that causes the issue above.

In order to preserve the NAME_X aliases that the old-style enum added to the global scope, new aliases have been added that point to the EName scoped versions. Unfortunately these can cause shadowing warnings if NAME_X is defined in the local scope, as the old-style enum used to allow that without shadowing, however there is no way to prevent this so we'll just need to fix any warnings that occur.

#rb Johan.Torp
#preflight 6087e06349a9840001414708

[CL 16126708 by Jamie Dale in ue5-main branch]
2021-04-27 10:11:18 -04:00
Luke Thatcher
c25f24b42b Fix compiler warning in StatsMallocProfilerProxy.cpp when building debug with Clang.
#rb trivial
#jira none

[CL 16056029 by Luke Thatcher in ue5-main branch]
2021-04-19 18:22:19 -04:00
Andriy Tylychko
d73a076897 added FTask alias for TTask<void>, for convenience as it's expected to be the majority of cases
[CL 16049773 by Andriy Tylychko in ue5-main branch]
2021-04-19 08:40:23 -04:00
Johan Torp
83e9856501 Reduce Stats allocations during early editor startup
#rb devin.doucette

[CL 15987404 by Johan Torp in ue5-main branch]
2021-04-13 05:45:27 -04:00
mark lintott
69f62bf934 #jira UE-111719
#rb andrew.ladenberger, ionut.matasaru
Replaced references to ue4stats with uestats.
Fixed frontend profiler to load uestats
#preflight 60630fd74862cc0001ef53c6

#ROBOMERGE-SOURCE: CL 15861539 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15861543 by mark lintott in ue5-main branch]
2021-03-30 09:48:17 -04:00
Andriy Tylychko
327a94d1a4 StatsThread replaced by a Pipe:
* the thread was removed and its surrounding was cleaned up a bit
* ENamedThreads::StatsThread (and relatives) deprecated
* support for single-threaded execution looks a bit messy because it still have to be based on the old TaskGraph API until we convert the game thread to the new API (which will be one of the very last things)
* despite the direct usage of ENamedThreads::StatsThread from an external code is highly unlikely, to preserve backward compatiblity internally TaskGraph redirects all remaining stats tasks to StatsPipe

#rb martin.ridgers

[CL 15794122 by Andriy Tylychko in ue5-main branch]
2021-03-24 04:47:07 -04:00
jeff newquist
34f6ef6d1c Stats system is still using 32-bit cycle counts, so don't use Cycles64() which may have a different resolution. Fix issue with hitch detection resulting from use of 64-bit count.
#jira UE-107359, UE-94786
#rb Yuriy.Odonnell
#rnx

#ROBOMERGE-SOURCE: CL 15643029 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v779-15635321)

[CL 15643057 by jeff newquist in ue5-main branch]
2021-03-08 13:39:18 -04:00
ionut matasaru
f1d532b209 [Insights] Fixed usage of UE::Trace namespace when (EXPERIMENTAL_)STATSTRACE_ENABLED is 1.
#rb none

[CL 14813185 by ionut matasaru in ue5-main branch]
2020-11-25 12:45:19 -04:00
Martin Ridgers
559f49880e Fixed StatsTrace compile errors.
#rb jb
#rnx

[CL 14733569 by Martin Ridgers in ue5-main branch]
2020-11-12 09:53:37 -04:00
Marc Audy
68150e0be7 Merge UE5/Release-Engine-Staging to UE5/Main @ 14611496
This represents UE4/Main @ 14594913

[CL 14612291 by Marc Audy in ue5-main branch]
2020-10-29 13:38:15 -04:00
Martin Ridgers
889b2d647c Implementation of Trace's important events. Some events are only traced once. CPU scope names or log format strings for example. Those trace-once events get lost if a user then connects to trace late (or reconnects a second time). To combat that important events are traced to a separate stream internally so that they can be identified, cached off to one side, and resent when a connection is first established.
#rb johan.berg
#rnx

[CL 14572080 by Martin Ridgers in ue5-main branch]
2020-10-26 03:29:23 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
Rolando Caloca
5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -05:00
Stefan Boberg
55a8b15f1f Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb none

[CL 11258477 by Stefan Boberg in Main branch]
2020-02-05 14:26:36 -05:00
PJ Kack
3a9ca4d2f9 Merging //UE4/Main @ 11112898 to //UE4/Dev-Core (dev-core-l0178)
#rb none

(ushell-p4-mergedown)

[CL 11113592 by PJ Kack in Dev-Core branch]
2020-01-26 11:33:22 -05:00
Martin Ridgers
bf557735c3 Fixed compile error when EXPERIMENTAL_STATSTRACE_ENABLED is 1.
#rb trivial
#jira ue-86750

[CL 11091464 by Martin Ridgers in Dev-Core branch]
2020-01-23 04:47:08 -05:00