Commit Graph

135 Commits

Author SHA1 Message Date
johan berg
94761f1499 Clean up dispatch queues for recreated watchers
Whenever settings would change we deleted the directory watches for all mounts. On Mac each watcher had a dispatch queue with running jobs. When the those lingering jobs would get callbacks, it would try to access the existing mount instance which would have been deleted.

#rb none
#jira UE-187849

[CL 27992508 by johan berg in ue5-main branch]
2023-09-19 08:37:39 -04:00
johan berg
f6eb6cc369 Bump UTS version to 1.18
#rb none

[CL 27991217 by johan berg in ue5-main branch]
2023-09-19 07:24:20 -04:00
johan berg
0e92126a13 Fix UTS timestamps on Linux
UTS was relying on standard library file times to get a common epoch based timestamp. However for Linux this does not seem to produce reliable results, so we fall back to the posix interface functions.

#rb martin.ridgers
#jira UE-191462

[CL 27784647 by johan berg in ue5-main branch]
2023-09-12 03:44:59 -04:00
johan berg
60cb57a6e8 Fix directory listening for Linux
The file notification api was not told to listen to renames.

#jira UE-187620
#rb martin.ridgers

[CL 27550742 by johan berg in ue5-main branch]
2023-09-01 05:05:16 -04:00
johan berg
5933c84c56 Version 1.17 of UnrealTraceServer for windows
UnrealTraceServer executable and debug files.
Version: 1.17
Platform: windows, mac, linux
Architecture: x64
Compiled with musl: false (linux: true)

#rb ionut.matasaru
#jira UE-191425
#lockdown mark.lintott

[CL 27139589 by johan berg in ue5-main branch]
2023-08-16 10:30:13 -04:00
johan berg
eacfa9384b Fix socket keep alive in UTS for Mac/Linux
On Windows keepalive options were set on the recording socket,  in order to detect if a tracing process suddenly closes it's connection (it's killed or crashes).  These options were missing from Mac and Linux configurations.

#rb martin.ridgers
#jira UE-188178

[CL 26343479 by johan berg in ue5-main branch]
2023-06-30 10:03:17 -04:00
johan berg
08abcb6315 Add version query endpoint in UTS
#rb martin.ridgers

[CL 26341823 by johan berg in ue5-main branch]
2023-06-30 08:08:25 -04:00
johan berg
e635d1a9b7 Update language in status message
#rb martin.ridgers

[CL 26341723 by johan berg in ue5-main branch]
2023-06-30 07:59:03 -04:00
Johan Berg
ca1a2c06fd Change directory watcher on MacOs in UnrealTraceServer
Use dispatch queues and updated watch logic.

#rb martin.ridgers
#preflight none

[CL 25639159 by Johan Berg in ue5-main branch]
2023-05-26 05:04:29 -04:00
Johan Berg
a7ff2f2d0e New UTS version
* Parse Session guid and trace guid from metadata if available for live sessions
* Add api to fetch a session based on above guid.

#rb none
#preflight none

[CL 25505216 by Johan Berg in ue5-main branch]
2023-05-17 08:34:03 -04:00
Johan Berg
fd2ada1f0a Update readme to reflect dynamic ports used
#rb none
#prefligh none

[CL 25368267 by Johan Berg in ue5-main branch]
2023-05-08 04:15:48 -04:00
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
95dbf28d18 Parse Guids from string representation
#rb martin.ridgers
#preflight 6451179f6538e45f75400e00

[CL 25301184 by Johan Berg in ue5-main branch]
2023-05-02 10:12:58 -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
Johan Berg
6582ca2c5b Use entire path for id
Use entire path to calculate the id. Just using the stem hides files that happens to be present in multiple mounts.

#rb none
#preflight 6446e79ec632d1e89b5b6aef

[CL 25171227 by Johan Berg in ue5-main branch]
2023-04-24 17:01:47 -04:00
Johan Berg
a4209fc28b Fix directory watcher on Linux/Mac
* Missed call to parent refresh
* Using incorrect platform define

#rb none
#preflight 6446891bf030f684d5d2f344

[CL 25163899 by Johan Berg in ue5-main branch]
2023-04-24 10:02:27 -04:00
Johan Berg
bc2b79aa83 Change build system to use xmake on all platforms
In order to unify the build systems on all platforms add makefiles for xmake and deprecate nmake/gmake files. This allows us to use the same configuration files on all platforms and easily add support for using musl on Linux. Updated readme file to reflect the new system.

#rb martin.ridgers
#preflight 644137ef73470c177c0a75bf

[CL 25125978 by Johan Berg in ue5-main branch]
2023-04-20 09:18:04 -04:00
Johan Berg
c7806c06a6 Disable system tray on non-windows platforms
#rb none
#preflight 6440eed473470c177cdf2126

[CL 25123301 by Johan Berg in ue5-main branch]
2023-04-20 04:08:48 -04:00
Johan Berg
939e64eb4f Implement store settings creation for Linux
#rb none
#preflight 6440eea9f61b80bcf79f606e

[CL 25123290 by Johan Berg in ue5-main branch]
2023-04-20 04:05:54 -04:00
Johan Berg
5e7affb683 Fix directory variable
#rb none
#preflight 6440ee54a9720904a6fa3641

[CL 25123268 by Johan Berg in ue5-main branch]
2023-04-20 04:00:10 -04:00
Johan Berg
d095183f84 Remove StartsWith which is not present in C++17
#rb none
#preflight 6440ee16b91c130758ec1ae2

[CL 25123259 by Johan Berg in ue5-main branch]
2023-04-20 03:56:16 -04:00
Johan Berg
650e6e0718 New UTS version
* Fixed issues with non-ascii folder names.
* Do not crash if folder is deleted by user.
* Do not recreate folders that has been deleted.

#rb none
#preflight 643d44c7a35280ed4fcecdb5

[CL 25067122 by Johan Berg in ue5-main branch]
2023-04-17 09:28:09 -04:00
Johan Berg
1098d4e700 Fixes related to watch folders.
* Avoid crashing if user deletes a mounted directory while running
* Avoid recreating watch folders when starting server. Don't create mounts for non-existing watch folders.

#rb none
#preflight 643d42268e01968448c58422

[CL 25066886 by Johan Berg in ue5-main branch]
2023-04-17 09:03:52 -04:00
Johan Berg
7779ccc4ea Set locale for std methods.
Testing has reported that non-ascii characters in folder names creates folders with garbage names. This sets the global locale for all std types which help to parse stored folder names.

#jira
#preflight 643d41f8211b661dc4e5d4e7

[CL 25066859 by Johan Berg in ue5-main branch]
2023-04-17 09:01:39 -04:00
Johan Berg
2e032f35f0 New version of UnrealTraceServer
* Support for setting trace store directory
* Support for adding watch folders

#rb none
#preflight 64368a7d1f33a0b34a0e4497

[CL 25004715 by Johan Berg in ue5-main branch]
2023-04-12 06:56:52 -04:00