72 Commits

Author SHA1 Message Date
laura hermanns
1d344a72de [UBA] Add breadcrumbs to UBA trace files.
This change adds a new field to the ProcessStartInfo struct in UBA trace files for a description of the task, called "breadcrumbs" which allow to diagnose and backtrace the origin of a UBA task.
This is also hooked up to the distributed shader compilation (added as new field in FTaskCommandData) and a descriptive string is generated for each shader compile job batch.
UbaVisualizer is updated accordingly to integrate this new data when hovering over a task in the timeline.
This feature can be enabled via the new CVar "r.ShaderCompiler.DistributedJobDescriptionLevel" with values 0 (Disabled), 1 (Basic information), 2 (Adds shader format to each job). It's disabled by default.

#rb dan.elksnitis, henrik.karlsson
#rnx

[CL 36346831 by laura hermanns in 5.5 branch]
2024-09-17 15:08:58 -04:00
Ryan Hummer
4af2fd066d Updating Dev-Release-5.5 from Main at CL #36144969
#okforversepublic

[CL 36146571 by Ryan Hummer in Dev-5.5 branch]
2024-09-10 10:26:02 -04:00
henrik karlsson
bcdd98b30c [UBA]
* Improved UbaVisualizer logic when connected via network

[CL 36032186 by henrik karlsson in ue5-main branch]
2024-09-05 03:09:28 -04:00
henrik karlsson
296227d131 [UBA]
* Fixed so visualizer shows *bps (bits) for networking to reduce confusing of if it is byte or bit

[CL 36026672 by henrik karlsson in ue5-main branch]
2024-09-04 18:54:49 -04:00
henrik karlsson
ebf5353e07 [UBA]
* Changed so SetWindowName is called on message thread

[CL 35791420 by henrik karlsson in ue5-main branch]
2024-08-25 02:00:53 -04:00
henrik karlsson
d7290814e8 [UBA]
* Added executing host in information popup when hovering over process

[CL 35588125 by henrik karlsson in ue5-main branch]
2024-08-16 02:16:46 -04:00
henrik karlsson
843e2408cd [UBA]
* Added reason for process being returned by client to trace file and visualizer

[CL 35439434 by henrik karlsson in ue5-main branch]
2024-08-09 18:50:03 -04:00
henrik karlsson
77796ad1e8 [UBA]
* Fixed so zoom is based on box height which is integer values. Now it is possible to zoom down to only 1 pixel high process bars

[CL 35435854 by henrik karlsson in ue5-main branch]
2024-08-09 17:06:11 -04:00
henrik karlsson
898512e6f0 [UBA]
* Improved ubavisualizer output
* Fixed visualizer crash
* Fixed support for dpi scaling through remote desktop
* Fixed so visualizer never ends up outside screen(s) boundaries
*

[CL 35349640 by henrik karlsson in ue5-main branch]
2024-08-06 15:31:53 -04:00
henrik karlsson
445713e80d [UBA]
* Fixed visualizer hang when horizontal autoscaling was enabled and window was minimized

[CL 35217165 by henrik karlsson in ue5-main branch]
2024-07-31 12:34:53 -04:00
henrik karlsson
3b85f05af8 [UBA]
* Improved ui for ubavisualizer for active processes
* Added windows message for when window is activated

[CL 35167202 by henrik karlsson in ue5-main branch]
2024-07-30 01:49:32 -04:00
henrik karlsson
ea69264ee6 [UBA]
* Fixed so quotes are preserved for arguments when visualizer relaunching itself

[CL 35005204 by henrik karlsson in ue5-main branch]
2024-07-22 18:36:51 -04:00
henrik karlsson
6c748b83d2 [UBA]
* Fixed bug where pid and id got lost when UbaVisualizer was copied and started from different location
* Added so pid and id can be picked up by environment variables UBA_OWNER_ID and UBA_OWNER_PID

[CL 34955074 by henrik karlsson in ue5-main branch]
2024-07-20 12:37:03 -04:00
henrik karlsson
aabc8ef32d [UBA]
* Added a bunch of new options to UbaVisualizer. Check out context menu and checkboxes
* Added more solid code for checking if parent exists or not.. should prevent leaving dead UbaVisualizer.exe processes around
* Changed exit code error message to use hex for exit code

[CL 34950241 by henrik karlsson in ue5-main branch]
2024-07-19 19:12:12 -04:00
henrik karlsson
642e9038ca [UBA]
* Changed so ubavisualizer copy itself to temp and relaunch from there by default. Can be disabled with "-nocopy"
* Added support for creating ubavisualizer with a parent. Provide -parent=<hwnd-in-hex> when launching UbaVisualizer to make it a child

[CL 34942082 by henrik karlsson in ue5-main branch]
2024-07-19 15:56:16 -04:00
henrik karlsson
fbccd4fb70 [UBA]
* Fixed bug where error message box can pop up multiple times
* Fixed so font size scales with processes when zooming

[CL 34886500 by henrik karlsson in ue5-main branch]
2024-07-17 17:48:42 -04:00
henrik karlsson
b6d23cd6e0 [UBA]
* Fixed non windows compile errors
* Fixed bug with m_connectionsIt not being set

[CL 34859444 by henrik karlsson in ue5-main branch]
2024-07-16 21:58:09 -04:00
henrik karlsson
803292b07a [UBA]
* Added -config=<file> support to UbaVisualizer
* Added "GetOwnerInfo" which can be used to get id and pid for owner.. right now devenv.exe is the only tracked owner but can add support for more applications
* Fixed so both trace name and default config name is affected by owner info.. this means a UbaVisualizer launched from inside visual studio will use a different config file
* Fixed bugs related to replays of active trace in visualizer

[CL 34852915 by henrik karlsson in ue5-main branch]
2024-07-16 16:27:53 -04:00
henrik karlsson
02e2d80d4a [Uba]
* Fixed negative time bug in visualizer for active processes section

[CL 34828717 by henrik karlsson in ue5-main branch]
2024-07-15 18:14:19 -04:00
henrik karlsson
185460fe91 [UBA]
* Added "active processes" view in visualizer. Easier to get an overview
* Changed so session stats is written into trace file as soon as possible
* Added support for some more types in config file add/write
* Added dedicated path for updateProgress into session in order to minimize trace file and have custom rendering for progress
* Added support for changing font size in visualizer
* Added option to enable autosaving settings in visualizer
* Fixed so it is possible to jump around in active named trace in UbaVisualizer
* Added hyperlink support ro status update so user can click on the text to follow the link

[CL 34827240 by henrik karlsson in ue5-main branch]
2024-07-15 17:13:18 -04:00
henrik karlsson
5cd5b5a7ec [UBA]
* Added config file support to UbaVisualizer, first iteration. If clicking "Save Position/Settings" in context menu config will be saved in %PROGRAMDATA%\Epic\UbaVisualizer\UbaVisualizer.toml

[CL 34795034 by henrik karlsson in ue5-main branch]
2024-07-10 18:24:10 -04:00
henrik karlsson
8398f0edb2 [UBA]
* Changed so code getting processor frequency uses registry instead of CallNtPowerInformation since we want a number that is the same every time and CallNtPowerInformation + MaxMhz does not do that

[CL 34789007 by henrik karlsson in ue5-main branch]
2024-07-09 13:15:32 -04:00
henrik karlsson
6b8dfd3cb2 [UBA]
* Fixed old comment in visualizer

[CL 34776386 by henrik karlsson in ue5-main branch]
2024-07-05 01:07:40 -04:00
joe kirchoff
01807edb07 UbaVisualizer: Remove Save Trace option if a trace file was loaded
#rnx
#jira UE-217792

[CL 34664052 by joe kirchoff in ue5-main branch]
2024-06-25 19:58:12 -04:00
joe kirchoff
1b305dc386 UbaVisualizer: Add -help arg
#rnx
#jira UE-217794

[CL 34663678 by joe kirchoff in ue5-main branch]
2024-06-25 19:39:42 -04:00