Commit Graph

270 Commits

Author SHA1 Message Date
martin ridgers
737acfd5de Non-unity include fix.
#rb trivial
#rnx

#ROBOMERGE-SOURCE: CL 16606964 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v828-16531559)

[CL 16606971 by martin ridgers in ue5-release-engine-test branch]
2021-06-09 12:28:35 -04:00
martin ridgers
f7326e281e Start the UnrealTrace server implicitly when non-programs launch, and when external platforms are launched through UAT.
#rb jb
#rnx

#ROBOMERGE-SOURCE: CL 16603787 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v828-16531559)

[CL 16603799 by martin ridgers in ue5-release-engine-test branch]
2021-06-09 08:51:18 -04:00
robomerge
a39dd7dff4 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
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v828-16531559)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 16566199 by robomerge in ue5-release-engine-test branch]
2021-06-06 14:58:05 -04:00
robert millar
30ed588107 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
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v828-16531559)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 16554515 by robert millar in ue5-release-engine-test branch]
2021-06-03 18:19:13 -04:00
robert millar
3a4438b84d 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
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v826-16501804)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 16509821 by robert millar in ue5-release-engine-test branch]
2021-05-31 12:34:52 -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
Andrew Davidson
3ddc3a4da3 Merge up from //UE5/Dev-LargeWorldCoordinates
#rb none

[CL 16211417 by Andrew Davidson in ue5-main branch]
2021-05-05 15:07:25 -04:00
aurel cordonnier
50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00
ben woodhouse
47a30fd5de Mac/Linux build fix
#ROBOMERGE-OWNER: ben.woodhouse
#ROBOMERGE-AUTHOR: ben.woodhouse
#ROBOMERGE-COMMAND: _robomerge ue5-main
#ROBOMERGE-SOURCE: CL 16110729 via CL 16110730 via CL 16110731 via CL 16110732 via CL 16110733 via CL 16110734
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Main) (v789-15992632)

[CL 16117118 by ben woodhouse in ue5-main branch]
2021-04-26 14:43:02 -04:00
ben woodhouse
5f00ce5cd9 CsvProfiler metadata improvements
- Implement ability to unset metadata values by setting with nullptr
- Sanitize metadata to remove commas from values and keys (the commandline is excluded because it's special)
- Set a starttimestamp metadata value (in seconds since the Unix epoch).
- Add metadata for OS, CPU, Namedevents (at capture start)
- Log metadata changes
[FYI] james.doverspike,andrew.ladenberger

#ROBOMERGE-OWNER: ben.woodhouse
#ROBOMERGE-AUTHOR: ben.woodhouse
#ROBOMERGE-COMMAND: _robomerge ue5-main
#ROBOMERGE-SOURCE: CL 16110194 via CL 16110198 via CL 16110202 via CL 16110209 via CL 16110215 via CL 16110345
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Main) (v789-15992632)

[CL 16117042 by ben woodhouse in ue5-main branch]
2021-04-26 14:40:19 -04:00
Johan Berg
1b941ad79c [TraceLog] Remove callstack worker thread
Removing callstack tracing worker thread. Profiling shows that the performance impact is negligable. Additionally it solves some deadlock issues and makes the code simpler. In order to only trace unique callstack we track emitted ones in a TSherwoodSet. The insertion performance for this collection is very efficient (see https://probablydance.com/2017/02/26/i-wrote-the-fastest-hashtable/) which means offloading it to a worker thread was not giving the expected gains.

#rb martin.ridgers
#rnx

[CL 16089889 by Johan Berg in ue5-main branch]
2021-04-22 04:05:01 -04:00
charles bloom
6331ae849c remove MemStack constructor with unused int argument
#rb none
#fyi yuriy.odonnell

[CL 16047263 by charles bloom in ue5-main branch]
2021-04-18 13:06:22 -04:00
rune stubbe
9c9edc9283 Added missing includes to fix non-Unity build
[FYI] graham.wihlidal
#lockdown michal.valient

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

[CL 15971516 by rune stubbe in ue5-main branch]
2021-04-10 10:04:33 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00
Martin Ridgers
fdc4a256c9 Swapped backtracing's RWLock out for a critical section until the need to lock can be removed.
#rb jb
#rnx
#jira ue-112851

[CL 15939459 by Martin Ridgers in ue5-main branch]
2021-04-07 08:26:57 -04:00
christopher waters
1bf5a09cc7 Adding external profiler for PIX CPU timing captures.
#jira UE-76514
#rb mihnea.balta, kenzo.tereslt

[CL 15937346 by christopher waters in ue5-main branch]
2021-04-06 21:54:21 -04:00