Commit Graph

25 Commits

Author SHA1 Message Date
Johan Berg
b73cb79e53 Implement getting session info using trace guid.
#jira UE-178144
#rb martin.ridgers
#preflight 645117e41c2846595cac18ec

[CL 25301376 by Johan Berg in ue5-main branch]
2023-05-02 10:26:21 -04:00
Johan Berg
24987edb0e Parse session and trace guids
#rb martin.ridgers
#preflight none

[CL 25178520 by Johan Berg in ue5-main branch]
2023-04-25 08:24:54 -04:00
Martin Ridgers
f514d7caaf Ditch support for old clients. As they use a different port they'd never connect anyway.
#rnx
#preflight none
(git:95ccf02 - Martin Ridgers - 2022-11-23 15:33:42 +0100)

[CL 23610472 by Martin Ridgers in ue5-main branch]
2023-01-09 05:07:45 -05:00
Martin Ridgers
36f8e52a04 Fill ops should still update the counter even if there's an error
#rnx
#preflight none
(git:9c83877 - Martin Ridgers - 2023-01-05 14:38:53 +0100)

[CL 23610133 by Martin Ridgers in ue5-main branch]
2023-01-09 04:27:15 -05:00
Martin Ridgers
6190ae5ab7 Recording relays should also be considered open when a drain op is in flight
#rnx
#preflight none
(git:6eb7f3c - Martin Ridgers - 2023-01-05 14:37:46 +0100)

[CL 23610128 by Martin Ridgers in ue5-main branch]
2023-01-09 04:26:55 -05:00
Martin Ridgers
b811d51004 Add double-buffering to the recorder allowing reads and writes to overlap each other.
#rnx
#preflight none
(git:7568f24 - Martin Ridgers - 2022-12-01 09:55:17 +0100)

[CL 23610077 by Martin Ridgers in ue5-main branch]
2023-01-09 04:13:11 -05:00
Martin Ridgers
2de2695a9c It is sufficient to return directly in each case here
#rnx
#preflight none
(git:3fa27cc - Martin Ridgers - 2022-12-01 09:54:17 +0100)

[CL 23610068 by Martin Ridgers in ue5-main branch]
2023-01-09 04:11:52 -05:00
Martin Ridgers
0d01a51136 Let recorder's OnIoComplete() handle what to do next
#rnx
#preflight none
(git:8565abd - Martin Ridgers - 2022-12-01 09:51:02 +0100)

[CL 23610066 by Martin Ridgers in ue5-main branch]
2023-01-09 04:11:29 -05:00
Martin Ridgers
b4effb0c62 Small semantic adjustment to how the magic is parsed to reduce use of 'Buffer' directly
#rnx
#preflight none
(git:b393071 - Martin Ridgers - 2022-12-01 09:36:56 +0100)

[CL 23610064 by Martin Ridgers in ue5-main branch]
2023-01-09 04:11:10 -05:00
Martin Ridgers
dd9f7d6b9d Bumped recorder's buffer size
#rnx
#preflight none
(git:b4b105d - Martin Ridgers - 2022-12-01 09:23:16 +0100)

[CL 23610031 by Martin Ridgers in ue5-main branch]
2023-01-09 04:02:28 -05:00
Martin Ridgers
81128f6918 Use the heap for the recorder's buffer instead of the stack
#rnx
#preflight none
(git:440fbc0 - Martin Ridgers - 2022-12-01 09:22:28 +0100)

[CL 23609988 by Martin Ridgers in ue5-main branch]
2023-01-09 03:48:59 -05:00
Martin Ridgers
d30d3d7da3 Gave metadata ops a higher ID value
#rnx
#preflight none
(git:ea3dfe1 - Martin Ridgers - 2022-12-01 09:18:42 +0100)

[CL 23609967 by Martin Ridgers in ue5-main branch]
2023-01-09 03:47:33 -05:00
Martin Ridgers
7232c04b56 Remove use of decltype()
#rnx
#preflight none
(git:28cd2cc - Martin Ridgers - 2022-11-24 12:59:54 +0100)

[CL 23609931 by Martin Ridgers in ue5-main branch]
2023-01-09 03:45:39 -05:00
Martin Ridgers
e151b7a0b3 Old-school (and almost certainly unused) was missing version bytes
#rnx
#preflight none
(git:3bb3e2c - Martin Ridgers - 2022-11-23 14:50:08 +0100)

[CL 23609928 by Martin Ridgers in ue5-main branch]
2023-01-09 03:45:20 -05:00
Martin Ridgers
31c81d2401 Recorder's parsing of metadata wasn't updating the read cursor correctly
#rnx
#preflight none
(git:c8d38dc - Martin Ridgers - 2022-11-24 13:01:33 +0100)

[CL 23609919 by Martin Ridgers in ue5-main branch]
2023-01-09 03:44:40 -05:00
Martin Ridgers
8980e6a81c Reject traces without well-formed metadata blobs
#rnx
#preflight none
(git:37fcb57 - Martin Ridgers - 2022-11-22 15:21:48 +0100)

[CL 23246589 by Martin Ridgers in ue5-main branch]
2022-11-23 03:53:33 -05:00
Martin Ridgers
96cab46eee Also fail on unexpected metadata sizes too
#rnx
#preflight none
(git:b9bd36e - Martin Ridgers - 2022-11-22 15:19:11 +0100)

[CL 23246583 by Martin Ridgers in ue5-main branch]
2022-11-23 03:52:58 -05:00
Martin Ridgers
d469026c31 Removed unused function
#rnx
#preflight none
(git:7905ddc - Martin Ridgers - 2022-11-22 11:14:26 +0100)

[CL 23246575 by Martin Ridgers in ue5-main branch]
2022-11-23 03:52:27 -05:00
Martin Ridgers
7ade61a8a1 Only create traces with the store when valid trace data has been detected.
Prior to this change, a trace was registered with the store component before creating the relay that receives data over the socket and writes it to a file. While the relay does check the preamble of the data received, and rejects anything that is not a trace, it does not clean up the store. Now no trace is created until the relay has determined it has a trace to receive data for. This stops zero-sized traces littering a users disk which can happen if the machine is port scanned by their IT department.

#rb im
#rnx
#preflight none

[CL 23246554 by Martin Ridgers in ue5-main branch]
2022-11-23 03:48:46 -05:00
Martin Ridgers
d4af074fe0 Removed OpStart for clarity
#preflight none
#rnx
(git:06eb61a - Martin Ridgers - 2022-11-22 11:08:02 +0100)

[CL 23233913 by Martin Ridgers in ue5-main branch]
2022-11-22 08:15:55 -05:00
Martin Ridgers
4ae563d2a3 Split parsing of .utrace magic into its own method
#rnx
#preflight none
(git:31963c2 - Martin Ridgers - 2022-11-22 11:03:03 +0100)

[CL 23233767 by Martin Ridgers in ue5-main branch]
2022-11-22 08:02:11 -05:00
Martin Ridgers
63c40dc2a4 Have the recorder relay create the trace itself
#rnx
#preflight none
(git:e317541 - Martin Ridgers - 2022-11-22 09:39:12 +0100)

[CL 23233602 by Martin Ridgers in ue5-main branch]
2022-11-22 07:39:38 -05:00
Martin Ridgers
b063c16470 Split op IDs across multiple lines
#preflight none
#rnx
(git:2ca2101 - Martin Ridgers - 2022-11-22 09:29:54 +0100)

[CL 23233591 by Martin Ridgers in ue5-main branch]
2022-11-22 07:39:15 -05:00
Martin Ridgers
c97877ca57 Moved socket keep-alive modification into the relay as it is the socket owner
#preflight none
#rnx
(git:8f63330 - Martin Ridgers - 2022-11-21 10:03:07 +0100)

[CL 23233583 by Martin Ridgers in ue5-main branch]
2022-11-22 07:38:47 -05:00
Martin Ridgers
255b05c611 UnrealTraceServer source.
[CL 17213236 by Martin Ridgers in ue5-main branch]
2021-08-18 07:36:31 -04:00