302 Commits

Author SHA1 Message Date
dmytro vovk
9f91e856b2 Fixed thread unsafe static vars in CSV_SCOPED_TIMING_STAT_RECURSIVE
#rb ben.woodhouse
[FYI] joe.bestrotheray

[CL 32500244 by dmytro vovk in 5.4 branch]
2024-03-26 02:56:11 -04:00
jordan cristiano
9ce9a4fc7d Fixed csv metadata for NamedEvents not being set if namedevents was enabled after the csv capture starts.
#rb evgenii.babinets
[FYI] ben.woodhouse
#tests Win64 test client csv start/stop with stat namedevents/stop with stat namedevents

[CL 31492121 by jordan cristiano in 5.4 branch]
2024-02-14 15:56:33 -05:00
dmytro vovk
3aec270fa8 Fixed default initialization of TLS slots to 0 and invalidity check against 0 as 0 is a valid TLS slot index
Attempt no. 2
#rb Francis.Hurteau, Matt.Peters

[CL 31121091 by dmytro vovk in 5.4 branch]
2024-02-02 07:23:47 -05:00
sean boocock
307169752f [Backout] - 31084550 - Blocking launching FN editor
[FYI] dmytro.vovk
Original CL Desc
-----------------------------------------------------------------
Fixed default initialization of TLS slots to 0 and invalidity check against 0 as 0 is a valid TLS slot index
#rb Francis.Hurteau, Matt.Peters

[CL 31088667 by sean boocock in 5.4 branch]
2024-02-01 10:58:11 -05:00
dmytro vovk
75e1bb8735 Fixed default initialization of TLS slots to 0 and invalidity check against 0 as 0 is a valid TLS slot index
#rb Francis.Hurteau, Matt.Peters

[CL 31084557 by dmytro vovk in 5.4 branch]
2024-02-01 08:32:06 -05:00
catalin dragoiu
433216dba2 Add Trace Pause/Resume menu entry to the Trace Editor Widget.
#rb ionut.matasaru
#jira UE-205279

[CL 31012113 by catalin dragoiu in 5.4 branch]
2024-01-30 12:56:04 -05:00
gwennael arbona
8f115ba252 Add new RecordEventAtFrameStart method to the CSV profiler
#rnx
#rb ben.woodhouse
#tests Works as advertized on a local build

[CL 30925133 by gwennael arbona in 5.4 branch]
2024-01-26 10:48:03 -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
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
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
dmytro vovk
720816d3b8 Added missing const specifier to FCsvDeclaredStat's name param
#rb trivial

[CL 30110560 by dmytro vovk in ue5-main branch]
2023-12-05 05:36:48 -05:00
ionut matasaru
2805b2c5c7 [Insights] Fixed asset metadata association with mem allocations to match LLM.
#rb Matt.Peters, Simon.Orr

[CL 29839398 by ionut matasaru in ue5-main branch]
2023-11-20 07:35:48 -05:00
ben zeigler
e4e7358e31 Improve unreal insights instrumentation of editor loading and blueprint compilation
Removed redundant events and added asset-specific trace events when AssetLoading is enabled
Add SCOPED_LOADTIMER_ASSET_TEXT macro for outputting an asset name during load and improved comments
#rb dan.oconnor, danny.couture, dave.jones2

[CL 29784333 by ben zeigler in ue5-main branch]
2023-11-16 13:43:53 -05:00
joe bestrotheray
34d62be948 Add csv profiling to AllocVirtual and BinnedAllocFromOS on windows/unix
#rb ben.woodhouse, kaleb.morris, matt.harris

[CL 29710719 by joe bestrotheray in ue5-main branch]
2023-11-14 08:25:29 -05:00
danny couture
5e4ad81f3a [EditorPerf] - Add windows performance counters to Insight traces when -perfcounters is present on the command-line
#rnx
#rb Ionut.Matasaru

[CL 29346706 by danny couture in ue5-main branch]
2023-11-01 21:19:15 -04:00
steve robb
83fe932303 Removed TAnd on variadic function argument checks.
#rb danny.couture

[CL 29087205 by steve robb in ue5-main branch]
2023-10-25 09:42:42 -04:00
matt peters
4061ab7181 Added missing defines when UE_MEMORY_TAGS_TRACE_ENABLED is not defined
#rnx
#rb partner: cdpr: eryk.dwornicki

[CL 28502574 by matt peters in ue5-main branch]
2023-10-05 12:05:04 -04:00
steve robb
a84e22104b Replaced GET_VARARGS* macros with GET_TYPED_VARARGS*.
#rb james.hopkin
#jira UE-194628

[CL 28346416 by steve robb in ue5-main branch]
2023-09-29 13:00:07 -04:00
danny couture
87115fc8bf Add flush feature to CpuProfiler that can be used before entering a long single operation like a wait that could be missed in UnrealInsights in case of deadlock
#rnx
#rb Ionut.Matasaru

[CL 28315289 by danny couture in ue5-main branch]
2023-09-28 08:40:04 -04:00
johan berg
db67a7e9ca Allow traced log messages to be longer than 1500 characters.
Adds a variant of the formatting function that allows for overflowing the stack allocated buffer when needed.

#rb ionut.matasaru
#jira UE-133474

[CL 27990697 by johan berg in ue5-main branch]
2023-09-19 06:47:03 -04:00
ionut matasaru
1a996169e5 [Insights] CpuProfilerTrace:
- Enabled cpu scope tracing of object names (blueprints, functions) by default when app is not running as a commandlet (still requires "cpu" trace channel and -statnamedevents to be enabled). Enabling AssetLoadTime trace channel will enable tracing of object names also in commandlets (ex. cooking).
  - Improved performance when tracing "statnamedevents" cpu scopes (by using a new optimized code path that uses an FName stat id together with a TCHAR* descriptive name).

#rb Matt.Peters

[CL 26815377 by ionut matasaru in ue5-main branch]
2023-08-03 12:36:42 -04:00
matt breindel
2aa030c727 CONTROL_FLOW_PERF_TRACE_STEP. Adding support in FControlFlow and TRACE_CPUPROFILE macros to allow you to begin an event in a control flow node implementation and have it automatically terminated by FControlFlow whenever/however that node completes. This ensures that in a profile trace sequential steps show up sequentially rather than appearing nested (despite the technical fact that they are actually invoked as nested functions).
[REVIEW] [at]*evgenii.babinets [at]*geoffrey.wong

[CL 26693666 by matt breindel in ue5-main branch]
2023-07-28 20:29:29 -04:00
logan buchy
00b725427a Pause StallDetector when SlowTask is present
* A SlowTask is created when there is delibrately going to be a stall-like condition but the developer wants to retain some limited interactivity.  This is traditionally not considered a stall.
* This change will pause stall detectors when slow tasks are created and resume them when the slow task ends.
* Implementation uses a TLS variable to store SlowTask specific pause contexts so as to not put a dependency of SlowTasks on the StallDetector.  Thread local stack is used since SlowTasks can be created from any thread context and can also be recursively created - therefore the Start/Finalize SlowTask events can be fired from any thread and the number of pause contexts need to match the created slow tasks.

#rb Brooke.Hubert, Rex.Hill
#jira UE-179567

[CL 26583138 by logan buchy in ue5-main branch]
2023-07-25 14:33:43 -04:00
bryan sefcik
320eb4ff95 Turned off callstack trace for Win ARM64 and ARM64EC.
#jira

[CL 26377232 by bryan sefcik in ue5-main branch]
2023-07-07 16:55:37 -04:00
Matt Peters
011a78ece9 LLM AssetTags: Fix the missing stats for AssetTags; they were accidentally disabled by CL 23599453.
#rnx
#rb Simon.Orr
#jira UE-188961

[CL 26185861 by Matt Peters in ue5-main branch]
2023-06-22 12:47:56 -04:00