Commit Graph

233 Commits

Author SHA1 Message Date
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
Johan Berg
fa91465163 Remove use of "Always" from inactive code blocks.
#rb trivial

[CL 11066680 by Johan Berg in Dev-Core branch]
2020-01-20 14:36:54 -05:00
michael noland
2d6847d01a Core: Fixes for various unsafe implicit type conversion warnings in the Core module (WIP; some files still suppress the warning)
- Ptrdiff -> int32
- Float/int confusion and double/float
- size_t stuff; various changes to the algorithms to use a deduced IndexType template argument and/or decltype to use the appropriate size for indicies and counts
- Fixed GetNum(FString) incorrectly returning SIZE_T instead of int32, and GetNum(container) now returns whatever container.Num() does (so usually int32)
#jira UE-86949
#rb marc.audy, steve.robb


#ROBOMERGE-OWNER: michael.noland
#ROBOMERGE-AUTHOR: michael.noland
#ROBOMERGE-SOURCE: CL 11050799 via CL 11050828 via CL 11050837
#ROBOMERGE-BOT: (v637-11041722)

[CL 11051763 by michael noland in Main branch]
2020-01-17 13:49:41 -05:00
Johan Berg
672f245053 Users of TraceLog now use channels
Systems that use TraceLog now uses channels to control if events are emitted. Also introduce a new command line argument "-trace" which allows users to specify a comma separated list of channel names to enable.

#rb martin.ridgers, ionut.matasaru

[CL 10950761 by Johan Berg in Dev-Core branch]
2020-01-13 07:16:21 -05:00
ryan durand
0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00
Robert Manuszewski
7b6f840f7f Copying //UE4/Dev-Core @ 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 10708666 by Robert Manuszewski in Main branch]
2019-12-13 11:07:03 -05:00
marc audy
dbcf07a558 Use new inline versions of substring functions
Fix up nearby cases where ESearchCase::CaseSensitive should have been used
#jira
#rnx
#rb

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10309793 via CL 10309818
#ROBOMERGE-BOT: (v593-10286020)

[CL 10309932 by marc audy in Main branch]
2019-11-19 13:27:07 -05:00
andrew ladenberger
e231b6ceb1 Fixed some stats not displaying with the budget command until toggled off and back on again
#rb jordan.cristiano, ori.cohen
[FYI] bryce.lumpkin


#ROBOMERGE-SOURCE: CL 10112566 via CL 10112630 via CL 10112657
#ROBOMERGE-BOT: (v587-10111126)

[CL 10112685 by andrew ladenberger in Main branch]
2019-11-12 10:36:37 -05:00
brandon schaefer
bea207d227 Reduce the mutex scope for GetHighPerformanceEnableForStat to avoid a dead lock when accessing a TLS static varaible in FCpuProfilerTrace::OutputEventType while another module is being loaded
#jira UE-82855
#rb none
[FYI] Martin.Ridgers, Arciel.Rekman, Stefan.Boberg

#ROBOMERGE-SOURCE: CL 9960142 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v558-9892490)

[CL 9960146 by brandon schaefer in Main branch]
2019-11-01 14:07:43 -04:00
martin ridgers
231920f0f8 Fixed merge errors when Dev-RenPlatStage copied up to Main.
#rb cm
#jira none
#rnx

(ushell-p4-cherrypick of 9631298 by Martin.Ridgers)
(ushell-p4-cherrypick of 9631305 by Martin.Ridgers)
(ushell-p4-cherrypick of 9631347 by Martin.Ridgers)

#ROBOMERGE-SOURCE: CL 9676333 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v536-9675740)

[CL 9676335 by martin ridgers in Main branch]
2019-10-18 04:56:34 -04:00
Ben Marsh
b6039a9873 Merging //UE4/Dev-Main to Dev-Build (//UE4/Dev-Build)
#rb none
#rnx

[CL 9419420 by Ben Marsh in Dev-Build branch]
2019-10-04 11:20:44 -04:00
Stefan Boberg
1f813eb516 Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb many

[CL 9405827 by Stefan Boberg in Main branch]
2019-10-03 16:26:48 -04:00