Commit Graph

280 Commits

Author SHA1 Message Date
Martin Ridgers
37b76c8360 UE_APP_NAME is not unique if the build environment is "shared" (such is the case for installed builds). This makes it difficult to identify traces from monolithic builds. Use the project name set by UBT instead if available.
#rb jb
#rnx
#jira UE-100244

[CL 16741479 by Martin Ridgers in ue5-main branch]
2021-06-22 07:33:19 -04:00
Martin Ridgers
a7f9ee9069 - Removed explicit launching of the trace server in a couple of plugins. It was added temporarily to gather more information from CIS.
#rb jb
#rnx

[CL 16741421 by Martin Ridgers in ue5-main branch]
2021-06-22 07:28:43 -04:00
Martin Ridgers
51a8498dc6 Removed extra-size parameters for events that don't need them.
[CL 16739627 by Martin Ridgers in ue5-main branch]
2021-06-22 02:42:51 -04:00
Joe Kirchoff
a1d7a8c3c7 Support VisualStudio2022 as a source code accessor and compilier
Note: _MSC_VER is still 1929 with the VS2022 preview, I expect it to be 1930 eventually when the compiler version is bumped which should match the versioning scheme for every other VS release

#rb none
#preflight 60d0c0d878c3b00001e335d9

[CL 16730633 by Joe Kirchoff in ue5-main branch]
2021-06-21 14:04:04 -04:00
ionut matasaru
16ed95ae22 [Insights]
Updated the name of the Windows event used to force single instance of UnrealInsights.exe (Browser Mode) and to control when to try to auto-connect. This change allows UnrealInsights.exe from UE5 to coexists with a running instance from UE4.
  Also updated the comments to better explain how the Windows event is used.
  Trace auto-connect behavior remains the same: a game runtime (editor excluded) will try to auto-connect with a local trace store (now hosted by the UnrealTraceServer.exe) if UnrealInsights (Browser Mode) is running.

#rb Martin.Ridgers

[CL 16726078 by ionut matasaru in ue5-main branch]
2021-06-21 06:27:51 -04:00
ionut matasaru
36b7e864ce Fix for CIS compile error (-DisableUnity).
#rb none

[CL 16674353 by ionut matasaru in ue5-main branch]
2021-06-15 11:46:01 -04:00
ionut matasaru
6bfb55b3bd [Insights]
- Fixed tracing of UObject names and function names (UObject::CallFunction, FScopeCycleCounterUObject) when "stat named events" toggle is enabled (-statnamedevents, "stat NamedEvents" console command).
  - Added FCpuProfilerTrace::OutputBeginDynamicEvent(const FName), in addition to existing API that receives const ANSICHAR*  or const TCHAR*. It uses a separate DynamicFNameScopeNamesMap.

#rb Johan.Berg
#fyi Jeff.Farris

[CL 16657504 by ionut matasaru in ue5-main branch]
2021-06-14 08:51:02 -04:00
Catalin Dragoiu
c94e7ffa64 Non Unity include fixes #rb trivial #rnx
[CL 16642991 by Catalin Dragoiu in ue5-main branch]
2021-06-11 12:31:16 -04:00
Martin Ridgers
2ecf66a194 - Expose starting UnrealTraceServer to give dependents peace of mind. This is not normally required as the server should get launched when trace is initialised. However this initialisation happens so early that CIS tests/automation doesn't capture the TTY output making it difficult to investigate CIS-only issues. This is a strategic submit to push the TTY output later.
- Renamed StartUnrealTrace() to LaunchUnrealTrace() to be more indicative that it runs something.

#rb jb
#rnx

[CL 16638135 by Martin Ridgers in ue5-main branch]
2021-06-11 03:48:12 -04:00
Martin Ridgers
4e43d8af98 Renamed "UnrealTrace.exe" to "UnrealTraceServer.exe"
#rnx

[CL 16620134 by Martin Ridgers in ue5-main branch]
2021-06-10 05:18:45 -04:00
Martin Ridgers
243fa16521 Non-unity include fix.
#rb trivial
#rnx

[CL 16606964 by Martin Ridgers in ue5-main branch]
2021-06-09 12:27:03 -04:00
Martin Ridgers
516ced8c21 Start the UnrealTrace server implicitly when non-programs launch, and when external platforms are launched through UAT.
#rb jb
#rnx

[CL 16603787 by Martin Ridgers in ue5-main branch]
2021-06-09 08:49:10 -04:00
robomerge
e14a28d9b3 Add Csv metadata for DeviceID, LoginID. Cleanup metadata setters in CsvProfiler - handle permanent metadata once only; always use internal method
#ROBOMERGE-SOURCE: CL 16566159 via CL 16566196 via CL 16566199
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v828-16531559)

[CL 16566204 by robomerge in ue5-main branch]
2021-06-06 14:58:46 -04:00
robert millar
2d3f6490dd Back out CsvProfiler changes: Add SetAndHold command to csv profiler custom stats to allow infrequently updated statistics to have their value persisted.
[FYI] ben.woodhouse

#ROBOMERGE-SOURCE: CL 16554462 via CL 16554473 via CL 16554480 via CL 16554514 via CL 16554515
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v828-16531559)

[CL 16554522 by robert millar in ue5-main branch]
2021-06-03 18:20:03 -04:00
robert millar
01b244561b Add SetAndHold command to csv profiler custom stats to allow infrequently updated statistics to have their value persisted.
#ROBOMERGE-SOURCE: CL 16509803 via CL 16509813 via CL 16509817 via CL 16509820 via CL 16509821
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v826-16501804)

[CL 16509824 by robert millar in ue5-main branch]
2021-05-31 12:35:26 -04:00
Martin Ridgers
5b181f40df Do not allocate space for an attachment on the trace event as this event does not attach anything.
[CL 16508579 by Martin Ridgers in ue5-main branch]
2021-05-31 07:57:20 -04:00
Martin Ridgers
f26bd5b73c Added some new "trace." console commands;
trace.pause/resume - pauses and resumes the tracing of events
trace.send <host> - send a trace over the wire to "host".

#rb jb

[CL 16507790 by Martin Ridgers in ue5-main branch]
2021-05-31 02:43:05 -04:00
aurel cordonnier
43fa62fcd8 Merge from Release-Engine-Test @ 16487383 to UE5/Main
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16488106 by aurel cordonnier in ue5-main branch]
2021-05-27 13:40:37 -04:00
Martin Ridgers
422baae1e8 Compile fix as my one was incorrect.
#fyi martins.mozeiko
#rnx

[CL 16364944 by Martin Ridgers in ue5-main branch]
2021-05-18 05:10:40 -04:00
Martin Ridgers
8734c5def1 No-unity compile fixes.
#fyi martins.mozeiko
#rnx

[CL 16364805 by Martin Ridgers in ue5-main branch]
2021-05-18 04:24:30 -04:00
martins mozeiko
2c17e2df6d Fix shutdown code of ETW tracing, and do not log warning on startup if ETW is not enabled yet
#rb Ionut.Matasaru

[CL 16358926 by martins mozeiko in ue5-main branch]
2021-05-17 16:49:01 -04:00
martins mozeiko
2208dade76 Add context switch and stack sampling trace collection on Windows using ETW
#rb Ionut.Matasaru

[CL 16357198 by martins mozeiko in ue5-main branch]
2021-05-17 15:28:50 -04:00
geoff evans
e1d1984bd4 Add support for trace counters to stall detector and trace summarize commandlet for telemetry in Iteration Profile
StallDetector:
* Replace static and per-callsite counter variables with trace classes
* Compose a trace api appropriate counter name (Stall Detector category)

SummarizeTraceCommandlet:
* Add support for extract and decode of counter messages from utrace files with a new analyzer class
* Report counters with name and count columns in the existing csv
* Support generation of counter events and values through to telemetry csv

#jira UETOOL-3506
#rb francis.hurteau
#preflight 609c5f45e88e9100010b5466

[CL 16314462 by geoff evans in ue5-main branch]
2021-05-13 12:37:02 -04:00
ionut matasaru
2d5c799e12 [Insights]
- Added new trace events to track the ReOpenFile API. Updated the PlatformFileTraceAnalysis to process the respective new trace events. This fixes the issue where activities were displayed in Unreal Insights as I/O events with "Unknown" file (UE-114506).
  - Updated warning messages and debug code in PlatformFileTraceAnalysis.
  - Added handle tracking in Insights for I/O Activity events. File handle and read/write handles are now displayed in tooltip of an I/O Activity event.
  - Added "ReOpen" as a separate I/O activity type.

#jira UE-114506
#rb Catalin.Dragoiu, Robert.Millar

[CL 16310259 by ionut matasaru in ue5-main branch]
2021-05-13 03:13:34 -04:00
Martin Ridgers
01908bae43 Set the size of the trace tail from the command line with -tracetailmb=...
#rb jb
#rnx

[CL 16296609 by Martin Ridgers in ue5-main branch]
2021-05-12 03:07:24 -04:00