445 Commits

Author SHA1 Message Date
johan berg
b40e8ba538 Remove usage of MessageLog in analysis.
Usage of MessageLog in non-ui threads is tricky and need to be carefully managed to avoid flushing memory on the wrong thread. With this change direct usage of MessageLog in the analysis engine is removed and replaced with a callback system which allows the user of TraceAnalysis to implement display of the messages themselves. In the case of InsightsManager this means queuing up the messages in analysis session and regularly polled from the UI thread.

#rb ionut.matasaru
#jira UE-185528

[CL 26087858 by johan berg in 5.3 branch]
2023-06-19 08:52:43 -04:00
Johan Berg
2f814b56e4 Allow swapping of watch and store directory.
Previously setting the store directory to the same directory as a watch directory was disabled. With this change the selected directory when set as store it is also automatically removed as watch directory.

#rb ionut.matasaru
#jira UE-184965

[CL 25977468 by Johan Berg in ue5-main branch]
2023-06-14 10:11:28 -04:00
bryan sefcik
5b6c78e627 Removed monolothic header includes.
#preflight 647a50f58417d79259bf0677
#jira

[CL 25775811 by bryan sefcik in ue5-main branch]
2023-06-02 18:21:36 -04:00
Johan Berg
2a0a9d8ec7 Disable internal trace store for all platforms.
Standalone servers have been submitted for all desktop platform. Disable hosted trace store everywhere and enable launching of the server.

#rb ionut.matasaru
#preflight 64749db03535a898de7c1983

[CL 25663303 by Johan Berg in ue5-main branch]
2023-05-29 08:52:39 -04:00
Johan Berg
5a5f2a5480 Use new trace functionality to correctly identify live session from own process
Previously executing "Open current session" in the Insights launcher used the last activated live session, which might be incorrect if the user has multiple live session at the same time. This change uses new functionality in TraceLog which adds session and trace guid fields as metadata and queries the server for the current ongoing session.

#rb catalin.dragui
#jira UE-178144
#preflight 6464ca39fa4cf4165130bce9

[CL 25505766 by Johan Berg in ue5-main branch]
2023-05-17 09:17:55 -04:00
marc audy
360c65f9cd Fix missing dependency
#rnx
#jira

[CL 25395332 by marc audy in ue5-main branch]
2023-05-09 16:39:50 -04:00
ionut matasaru
3fa4349a65 [Insights] Fixed StoreClient's read trace (FStoreCborClient::ReadTrace) incorectly using socket's local_endpoint insted of remote_endpoint.
#rb trivial
#fyi Johan.Berg
#preflight skip

[CL 25170298 by ionut matasaru in ue5-main branch]
2023-04-24 16:12:46 -04:00
ionut matasaru
4379664d1a [Insights] Fixed UnsafeTypeCast warnings.
#rb trivial
#preflight 6446a401dc71c13446e678c4

[CL 25165790 by ionut matasaru in ue5-main branch]
2023-04-24 11:54:05 -04:00
jamie dale
3e0d3c2b5a No PCH build fix (Shipping)
#jira
#rb none
#rnx

[CL 25025443 by jamie dale in ue5-main branch]
2023-04-13 10:51:05 -04:00
Joe Kirchoff
79b7bd19d3 C++20 fixes
#rnx
#preflight 64276ce42a0b706ac6bc5400

[CL 24881643 by Joe Kirchoff in ue5-main branch]
2023-03-31 19:56:46 -04:00
Johan Berg
105750c5c0 UX for settings trace store and additional watch directories
#rb ionut.matasaru
#preflight 642302d5973e6096700f90a5

[CL 24833835 by Johan Berg in ue5-main branch]
2023-03-29 07:21:59 -04:00
Johan Berg
49ada89002 Add trace store connection status UX and reconnection logic
* Adds user interface for displaying connection to trace store
* Adds logic that checks the connection in store browser and periodically attempts to reconnect if a severed connection is detected.

#jira UE-123719
#preflight 63e9fdfe96073a3e192548e0
#rb ionut.matasaru, catalin.dragoiu
#preflight 63ece9647e76998e9a4607c2

[CL 24229318 by Johan Berg in ue5-main branch]
2023-02-15 09:29:09 -05:00
Joe Kirchoff
c1f997087d Fix remaining UnrealGame Win64 V3 pathing issues
#rnx
#rb trivial
#preflight 63ec10e47e76998e9afe7aa7

[CL 24222870 by Joe Kirchoff in ue5-main branch]
2023-02-14 18:12:00 -05:00
Johan Berg
d7edd5ebfa Add user facing error message if transport layer error is detected.
#rb martin.ridgers, ionut.matasaru
#jira UE-174948
#preflight 63e4c581e86828e8c87bd2e2

[CL 24094435 by Johan Berg in ue5-main branch]
2023-02-09 05:19:47 -05:00
ionut matasaru
4cdebba7f3 [Insights] Fixed time for scoped events to be relative to base timestamp at runtime. This allows packing on 8 bytes (as in trace protocol 5). Added EnterScope_TB / LeaveScope_TB (timestamps relative to BaseTimestamp) events in addition to EnterScope_TA / LeaveScope_TA (absolute timestamps).
#jira UE-175374
#jira UE-175081
#rb Catalin.Dragoiu
#rb Johan.Berg
#preflight 63d7b1ad1f0aa8a28940eb30
#lockdown mark.lintott

[CL 23931997 by ionut matasaru in ue5-main branch]
2023-01-31 13:23:28 -05:00
ionut matasaru
c5facd5918 [Insights] Fixed trace analysis for scoped trace events (adjusts time to be relative to the base timestamp).
#jira UE-175081
#rb trivial
#preflight skip

[CL 23855673 by ionut matasaru in ue5-main branch]
2023-01-25 15:58:23 -05:00
ionut matasaru
39be21b62f [Insights] Added analysis support for the new trace protocol 7 (scoped events with absolute timestamp values).
#jira FORT-534052
#rb Johan.Berg
#preflight 63d0efc3d83c1837b1f21392

[CL 23845359 by ionut matasaru in ue5-main branch]
2023-01-25 04:26:15 -05:00
Martin Ridgers
1fb8d0b70e More robust analysis of trace streams where a large distance occurs between consecutive serialised events on different threads.
The main premise of this change is to order the heap of pending serialised events by distance from the next expected serial instead of in respect to each other. By using an unsigned comparison, wrapped serials that would otherwise appear on the negative side of the expected serial, in fact sort to the positive side. This allows the use of the full serial space as wraps no longer need to be calculated when sorting.
#rb jb
#rnx
#preflight 63caa0e6894b6403149bf5c0

[CL 23789248 by Martin Ridgers in ue5-main branch]
2023-01-20 09:17:33 -05:00
henrik karlsson
1dc10ba736 Fixed non unity compile errors in NNERuntimeORT, PartyPlatformSessionMonitor and Analysis.h
#preflight 63c97edeb0652247503efcbd
#rb none
#jira none

[CL 23776291 by henrik karlsson in ue5-main branch]
2023-01-19 12:42:13 -05:00
Johan Berg
84495298d7 [Insights] Surface error messages from analysis engine to the user
We have previously relied on UE_LOG messages to indicate problems in analysis. This change converts those log messages to use MessageLog functionality which is routed to a visual log representation inside the application (but also the log file).

Additionally adds functionality to show the Insights log windows when ever (new) errors are encountered.

#rb ionut.matasaru
#jira UE-154022
#preflight 63c91aa80225f00e14758d19

[CL 23771338 by Johan Berg in ue5-main branch]
2023-01-19 05:33:25 -05:00
ionut matasaru
bc786b8355 [Insights]
- Added workaround for large utrace streams with corrupted serial sync events (detects when too much data is buffered on one thread and stops analysis automatically).
  - Changed the read buffers to increase their size in power of two steps.

#rb Martin.Ridgers
#preflight 639996388c5081ee9a857e57

[CL 23510588 by ionut matasaru in ue5-main branch]
2022-12-14 06:13:07 -05:00
Martin Ridgers
8534a3ddeb Apply UnrealTraceServer@23233583,23246589 to POSIX platforms.
#rb none
#rnx
#preflight 637e190c8b12eb83a71c6861

[CL 23286199 by Martin Ridgers in ue5-main branch]
2022-11-28 03:32:43 -05:00
Rob Gay
5453650939 Checkpoint: Pipe source data to dashboard UI listview (Part 1)
- Add trace provider, module, & analyzer and start piping data through it as proof-of-concept
#rb max.hayes
#jira UE-169605
#rnx
#preflight 63753d471d25fe8b933fa452

[CL 23160520 by Rob Gay in ue5-main branch]
2022-11-16 15:13:38 -05:00
ionut matasaru
15126612ef [Insights] Fixed unsafe type cast warnings in TraceAnalysis module.
#rb Martin.Ridgers
#preflight 633583adf418a1071a57fc98

[CL 22271566 by ionut matasaru in ue5-main branch]
2022-09-30 11:28:14 -04:00
ionut matasaru
256e1b2a5f [Insights] Fixed serialization to Cbor for EventData with zero fields.
#rb none
#preflight 63341fd4dc213d2eadfd572c

[CL 22232212 by ionut matasaru in ue5-main branch]
2022-09-28 17:55:57 -04:00