Commit Graph

575 Commits

Author SHA1 Message Date
matt peters
90e4a65b82 LLM and Insights Tracing: Fix the parent declarations of TagTraces to use the parent declared by LLM's TagData rather than constructing it from unique name, which does not always work. Also pass in the DisplayName paths for the tag names rather than the UniqueName. Also fix a crash on editor shutdown due to PlatformTLS being destructed after main before LLM is destructed after main.
#rnx
#rb Johan.Berg

[CL 31012911 by matt peters in ue5-main branch]
2024-01-30 13:18:09 -05:00
catalin dragoiu
3382fb6278 Add Trace Pause/Resume menu entry to the Trace Editor Widget.
#rb ionut.matasaru
#jira UE-205279

[CL 31009421 by catalin dragoiu in ue5-main branch]
2024-01-30 11:51:24 -05:00
ionut matasaru
cbe01af88f [Insights] Fixed few typos.
#rb Catalin.Dragoiu

[CL 30966476 by ionut matasaru in ue5-main branch]
2024-01-29 07:53:49 -05:00
ben woodhouse
82d3355552 Make the CSV profiler free up temp stats memory when slack data exceeds a threshold in bytes, specified with csv.MaxPerThreadStatDataSlackKB (default 64KB). Setting to 0 cleans up slack immediately but results in a lot more allocations (and can block the memory allocator excessively in some cases, impacting game performance). This fixes issues on low end platforms where starvation of the CSV profiling thread can result in excessive slack memory that is not cleaned up until capture end.
Also add a debug cvar csv.PauseProcessingThread to pause the processing thread, simulating CPU starvation.

#rb serge.bernier
#tests Tested on Switch
[FYI] luke.thatcher

[CL 30941955 by ben woodhouse in ue5-main branch]
2024-01-26 16:42:18 -05:00
gwennael arbona
aaa963ca9c Add new RecordEventAtFrameStart method to the CSV profiler
#rnx
#rb ben.woodhouse
#tests Works as advertized on a local build

[CL 30920446 by gwennael arbona in ue5-main branch]
2024-01-26 08:16:50 -05:00
johan berg
a1bba2320f Version 1.19 of UnrealTraceServer for windows
UnrealTraceServer executable and debug files.
Version: 1.19
Platform: windows, mac, linux
Architecture: x64 (windows, linux), x64/arm64 (mac)
Compiled with musl: false (windows, mac), true (linux)

#rb ionut.matasaru

[CL 30916751 by johan berg in ue5-main branch]
2024-01-26 04:16:23 -05:00
gwennael arbona
3043631618 Allow tweaking the CSV stream buffering
#rnx

#rb ben.woodhouse

[CL 30916532 by gwennael arbona in ue5-main branch]
2024-01-26 03:57:13 -05:00
steve robb
f43fc1d782 Fixed up more bool-taking calls to take EAllowShrinking instead.
[CL 30894388 by steve robb in ue5-main branch]
2024-01-25 14:09:12 -05:00
johan berg
04cf87bfc6 Fix UTS launch args on Linux/Mac
Command being sent to the argument will include the initial space. Our code in runtime does not trim the argument string and fails comparison to the recognized commands.

#rb ionut.matasaru
#jira UE-204157

[CL 30802457 by johan berg in ue5-main branch]
2024-01-23 09:16:53 -05:00
ionut matasaru
d9563b28ec Fixed "disableunity" build when UE_TRACE_ENABLED is off but UE_TRACE_SERVER_LAUNCH_ENABLED is on.
#rb Johan.Berg

[CL 30770666 by ionut matasaru in ue5-main branch]
2024-01-22 09:20:58 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
steve robb
66266c6a11 Fixed up DerivedDataCache, DesktopPlatform, ApplicationCore, AssetRegistry, Core, CoreUObject, Projects, Sockets code to use EAllowShrinking instead of bools.
[CL 30676428 by steve robb in ue5-main branch]
2024-01-17 19:51:06 -05:00
marc audy
19e84555b3 Silence PVS warnings
[CL 30653812 by marc audy in ue5-main branch]
2024-01-17 01:34:02 -05:00
catalin dragoiu
0dd3cb2478 [Insights] Fix Unreal Insights Context Switch channel not enabling from Editor Widget correctly
#jira UE-181171
#rb ionut.matasaru

[CL 30634034 by catalin dragoiu in ue5-main branch]
2024-01-16 10:42:32 -05:00
ionut matasaru
c7b81e8e3a [Insights] Added the Windows error message to the log warning when the "UnrealTraceServer.exe" process fails to start. Also updated log messages re UTS launch.
#rb Johan.Berg

[CL 30590072 by ionut matasaru in ue5-main branch]
2024-01-12 06:32:59 -05:00
ionut matasaru
395e02a608 CsvProfiler: Added named events (and trace cpu timing events) also for Csv stats identified by FName.
#rb ben.woodhouse

[CL 30398980 by ionut matasaru in ue5-main branch]
2023-12-19 13:01:08 -05:00
johan berg
60c0d33cbe Temporary fix, removing sponsor argument
#rb ionut.matasaru

[CL 30395111 by johan berg in ue5-main branch]
2023-12-19 10:45:00 -05:00
dmytro ivanov
b8a0694f0a Hooking libc.so malloc/free/etc into memory tracer on Android
#jira UE-200096
#rb Chris.Babcock, ionut.matasaru

[CL 30376336 by dmytro ivanov in ue5-main branch]
2023-12-18 10:56:29 -05:00
ben woodhouse
dfef04e6fc Make it possible to enable CSV categories via config and also add support for hotfixing
#rb john.huelin
#tests Tested with a replay in a cooked build

[CL 30358791 by ben woodhouse in ue5-main branch]
2023-12-15 15:39:05 -05:00
johan berg
279156f276 Expose UTS controls and start with sponsor argument
* Expose Unreal Trace Server launching facilities in FTraceServerControl interface. Only enabled on platforms that can actually launch UTS.
* Renamed WITH_UNREAL_TRACE_LAUNCH to UE_TRACE_SERVER_LAUNCH_ENABLED
* Always start UnrealTraceServer with sponsor argument.

#rb ionut.matasaru

[CL 30346679 by johan berg in ue5-main branch]
2023-12-15 07:56:03 -05:00
tom holmes
58c4bd03b3 MemFree isn't including CachedAllocatorSlack in Shipping
#rb Mickael.Gilabert
[FYI] Tyler.Staples, Eric.McDaniel
#tests ReplayRun, XB1

[CL 30281843 by tom holmes in ue5-main branch]
2023-12-12 18:34:42 -05:00
marcelo gomes
64b36b8582 In automated perf tests that capture csvs, include the device ip in the additional csv metadata
#rb Brendan.Lienau

[CL 30090248 by marcelo gomes in ue5-main branch]
2023-12-04 14:15:00 -05:00
ionut matasaru
c99672cda8 [Insights] CpuProfiler:
- Flushed the thread buffer (if not already empty) when the thread ends.
  - Added timestamp ("Cycle" field) to the "CpuProfiler.EndThread" event.
  - Removed unused "CpuProfiler.EndCaptureV2" event.

#rb Johan.Berg, Catalin.Dragoiu

[CL 30075996 by ionut matasaru in ue5-main branch]
2023-12-04 06:50:16 -05:00
marc audy
763a611985 Fix C4072 warnings
#rnx

[CL 29852844 by marc audy in ue5-main branch]
2023-11-20 17:26:53 -05:00
dmytro ivanov
472be09f89 Enable memory tracing on Android
#jira UE-200096
#rb ionut.matasaru, Johan.Berg

[CL 29637861 by dmytro ivanov in ue5-main branch]
2023-11-10 08:42:29 -05:00