Commit Graph

195 Commits

Author SHA1 Message Date
Johan Berg
ff1e20c51d Fix for CIS errors on latest MSVC toolchain
#rb none
#jira UE-152851
#preflight 6290da151f0041249bf05296

[CL 20393190 by Johan Berg in ue5-main branch]
2022-05-27 10:29:12 -04:00
David Harvey
ce4f7bedd5 TraceLog HoloLens platform extension file.
#jira UE-149794
#rnx
#rb trivial
#preflight 6290b0e33c05bea8bfcbab96

[CL 20391695 by David Harvey in ue5-main branch]
2022-05-27 07:22:36 -04:00
ionut matasaru
df6018342f Added CacheAllocated statistics for trace system (all memory allocated in cache buffers).
Fixed "Important Events cache" stats displayed by Trace.Status console command.

#rb Johan.Berg
#preflight 628f37cdc511f67c9f0905f6

[CL 20376989 by ionut matasaru in ue5-main branch]
2022-05-26 04:47:52 -04:00
Johan Berg
af08ac6622 [TraceLog] Add signed/unsigned integer distinction
#rb martin.ridgers
#preflight 62874171df5ff06fef540af5

[CL 20291967 by Johan Berg in ue5-main branch]
2022-05-20 03:37:02 -04:00
David Harvey
9cc4146fbc move HoloLens runtime source to platform extension folder.
#jira UE-149794
#rnx
#rb Jeff.Fisher
#preflight 6284cd49614041edb76395dc

[CL 20258963 by David Harvey in ue5-main branch]
2022-05-18 06:59:59 -04:00
geoff evans
fe09fcac03 Trace: Fix bug where Snapshots don't contain event descriptions if no active connection exists
#rnx
#rb trivial
#preflight 627d67e613752319231354d5

#ROBOMERGE-AUTHOR: geoff.evans
#ROBOMERGE-SOURCE: CL 20172344 via CL 20172353 via CL 20172365
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20173296 by geoff evans in ue5-main branch]
2022-05-12 18:35:20 -04:00
Johan Berg
b2d43a1fe8 [TraceLog] Fix for static analysis warnings
#rb none
#preflight 627bc163b60dee4a43aa3599

[CL 20139768 by Johan Berg in ue5-main branch]
2022-05-11 10:35:31 -04:00
geoff evans
0988a55b0a Trace Snapshot to File
### Features
We can now write tailing memory to a utrace file. Snapshotting while tracing to a file or socket is supported.
This change introduces a new console command: Trace.SnapshotFile. It writes the profiling data from memory into an optionally specified a utrace file.

### Testing
Run Editor with -tracefile
Run Editor with -trace, connect live with insights
Run Editor without -trace (this does generate a very small utrace since there is memory and data in the tail even though default channels are not enabled)

#rb johan.berg
#jira UE-150302,UE-150292
#preflight 6272a3213e1f2a9d3a88ee3d

#ROBOMERGE-OWNER: geoff.evans
#ROBOMERGE-AUTHOR: geoff.evans
#ROBOMERGE-SOURCE: CL 20124258 via CL 20125717 via CL 20126082
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20129506 by geoff evans in ue5-main branch]
2022-05-10 17:03:04 -04:00
Johan Berg
5d363d7245 [TraceLog] Add definition event types and reference fields.
Adds a new field type for trace events which contains a reference to a previously emitted event. In order to create a reference, the referenced event type needs to be declared with a new "definition" flag. The definition flag also defines type of id that is used for the reference, 8, 16, 32 and 64 bit values are supported.

#rb ionut.matasaru, martin.ridgers
#preflight 627393ea4e24dbee173d42c5

[CL 20055730 by Johan Berg in ue5-main branch]
2022-05-05 05:30:07 -04:00
Martin Ridgers
4e58714384 "enum used as boolean constant" compiler warning fix
#rb trivial
#rnx
#preflight 61fa5a179e4d23cd93c90cb4

[CL 18823277 by Martin Ridgers in ue5-main branch]
2022-02-02 05:32:01 -05:00
Martin Ridgers
5bc2d68c05 Added a Vim tag
#preflight na
#rnx

[CL 18751482 by Martin Ridgers in ue5-main branch]
2022-01-27 03:59:00 -05:00
Martin Ridgers
ce73c08f88 Extra argument to allow filtering of the glob files
#preflight na
#rnx

[CL 18751441 by Martin Ridgers in ue5-main branch]
2022-01-27 03:47:17 -05:00
Martin Ridgers
8b20c99f54 Moved source file gathering into its own function
#preflight na
#rnx

[CL 18751395 by Martin Ridgers in ue5-main branch]
2022-01-27 03:40:34 -05:00
Martin Ridgers
02bd8be373 Conveniently copy LZ4 out if '--thin' is used
#preflight na
#rnx

[CL 18751356 by Martin Ridgers in ue5-main branch]
2022-01-27 03:34:29 -05:00
Martin Ridgers
9bdb84c2d2 Added a --thin option to ease prologue/epilogue iteration
#preflight na
#rnx

[CL 18751327 by Martin Ridgers in ue5-main branch]
2022-01-27 03:30:47 -05:00
Martin Ridgers
6bd20508a9 Separators for clarity
#preflight na
#rnx

[CL 18751304 by Martin Ridgers in ue5-main branch]
2022-01-27 03:25:21 -05:00
catalin dragoiu
436d53708b Fix Linux crash when connecting to an incorrect host address.
#jira UE-138183
#preflight 61d71ec4430de36baa4c776b
#rb Ionut.Matasaru

#ROBOMERGE-AUTHOR: catalin.dragoiu
#ROBOMERGE-SOURCE: CL 18558899 in //UE5/Release-5.0/... via CL 18558909 via CL 18558926
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18558934 by catalin dragoiu in ue5-main branch]
2022-01-10 09:09:45 -05:00
catalin dragoiu
2c2682721c Fix Linux crash when connecting to an incorrect host address.
#jira UE-138183
#preflight 61d71ec4430de36baa4c776b
#rb Ionut.Matasaru

#ROBOMERGE-AUTHOR: catalin.dragoiu
#ROBOMERGE-SOURCE: CL 18558899 in //UE5/Release-5.0/... via CL 18558909
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18558926 by catalin dragoiu in ue5-release-engine-test branch]
2022-01-10 09:08:30 -05:00
johan berg
29dbaaa94a [Insights] Trace console commands improvments.
* Added 'Trace.Enable' and 'Trace.Disable' console commands to control channels.
* 'Trace.Start' is marked as deprecated in favor of Trace.File.
* For 'Trace.File' both arguments are now optional, and heuristic for detecting a file argument implemented.
* 'Trace.Stop' no longer disables channels.
* 'Trace.Pause/Resume' now keeps a list of the current active channels which will be restored. Logic for enabling channels has been separated from EnableChannels which is used in initialization sequence.
* Changed FChannel toggling to directly write the state. This change was done to reduce confusion around enabling/disabling channels and preset that overlaps.
* Refactored some methods internal to FTraceAuxilliaryImpl

#jira UE-136002
#preflight 61d80f13430de36baa590e55

#ROBOMERGE-OWNER: johan.berg
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18540924 in //UE5/Release-5.0/... via CL 18540956 via CL 18540960
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18540965 by johan berg in ue5-main branch]
2022-01-07 05:19:37 -05:00
johan berg
822346c9d1 [Insights] Trace console commands improvments.
* Added 'Trace.Enable' and 'Trace.Disable' console commands to control channels.
* 'Trace.Start' is marked as deprecated in favor of Trace.File.
* For 'Trace.File' both arguments are now optional, and heuristic for detecting a file argument implemented.
* 'Trace.Stop' no longer disables channels.
* 'Trace.Pause/Resume' now keeps a list of the current active channels which will be restored. Logic for enabling channels has been separated from EnableChannels which is used in initialization sequence.
* Changed FChannel toggling to directly write the state. This change was done to reduce confusion around enabling/disabling channels and preset that overlaps.
* Refactored some methods internal to FTraceAuxilliaryImpl

#jira UE-136002
#preflight 61d80f13430de36baa590e55

#ROBOMERGE-OWNER: johan.berg
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18540924 in //UE5/Release-5.0/... via CL 18540956
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18540960 by johan berg in ue5-release-engine-test branch]
2022-01-07 05:19:00 -05:00
Martin Ridgers
3ee1c53b0c Updated prologue so that all macros that the glob source uses are always defined when preprocessing.
#rnx

[CL 18466046 by Martin Ridgers in ue5-main branch]
2021-12-15 05:33:04 -05:00
Martin Ridgers
1135d1bab3 Fixed incorrect preprocessor statement that wrapped globbed .cpp files.
#rnx

[CL 18466042 by Martin Ridgers in ue5-main branch]
2021-12-15 05:31:41 -05:00
johan berg
a0801850e1 [Insights] Added Trace.status console command
Added console command to print status of trace to in game console. In order to list the available channels a enumeration method was added.

#rb martin.ridgers
#jira UE-136018
#preflight 61b32d0dc01c89f906dc3dbd

#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18429738 in //UE5/Release-5.0/... via CL 18429749
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18429751 by johan berg in ue5-release-engine-test branch]
2021-12-10 05:52:36 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
martin ridgers
7c213f050d Script to create a single-file header version of Trace with a CPU scope implementation.
#rnx

#ROBOMERGE-AUTHOR: martin.ridgers
#ROBOMERGE-SOURCE: CL 18203877 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v895-18170469)

[CL 18203881 by martin ridgers in ue5-release-engine-test branch]
2021-11-16 04:09:40 -05:00