Commit Graph

86 Commits

Author SHA1 Message Date
Jaroslaw Surowiec
27facd396a Profiler - Removed obsolete memory profiler code from the profiler session
[CL 2598600 by Jaroslaw Surowiec in Main branch]
2015-06-24 04:21:35 -04:00
Jamie Dale
fe2c01e3c0 Ensured that everything in the editor using a TTextFilter is reporting syntax error information back to the user
[CL 2582959 by Jamie Dale in Main branch]
2015-06-10 13:22:27 -04:00
Dan Oconnor
3e887b92bd Added counter to stats system that can total time spent in a reentrant function. Useful for load time profiling of linker and blueprint compiler.
[CL 2581445 by Dan Oconnor in Main branch]
2015-06-09 13:14:09 -04:00
Chris Wood
8a112d6140 PushMenu() now respects QueryPopupMethod(). All menus now support reusing windows.
UE-14641 - Fix PushMenu() to use QueryPopupMethod()

Pretty big refactor
Adds IMenu as way to identify menus. Replaces referring to menus as SWindows.
Lots of uses of PushMenu() fixed up to match new API

#codereview Nick.Atamas

[CL 2579277 by Chris Wood in Main branch]
2015-06-05 20:19:33 -04:00
Jamie Dale
23592d149c Converted FUIAction to use ECheckBoxState when reporting its check state
There are now overloads to FUIAction that take a FGetActionCheckState delegate which is able to return any of the entries from ECheckBoxState. FIsActionChecked still exists for backwards compatibility, and converts the returned bool into a ECheckBoxState via a passthrough function.

#codereview Matt.Kuhlenschmidt

[CL 2570717 by Jamie Dale in Main branch]
2015-05-29 12:57:25 -04:00
Max Preussner
ff529b7c22 Profiler: Added ability to resize named events list
[CL 2517589 by Max Preussner in Main branch]
2015-04-20 10:41:53 -04:00
PaulEremeeff
3d878d5a79 PR #996: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
I have reviewed each change carefully, but it is a large change and I could have missed something! Here is a summary of the types of changes in this CL:
 * Made nullptr checks consistent (the plurality of the changes are of this type)
 * Completed switch statements (IE, switch did not explicitly handle default case, but had unhandled enum entries - this is the second most popular type of fix)
 * Removed unused variables
 * Removed redundant initializations
 * WidgetNavigationCustomization.cpp was fixed by the owner
 * integers converted to floats where result was stored in a float
 * Removed redundent null checks (e.g. before delete statements)
 * Renamed variables to prevent non-obvious shadowing
 * Fixed use of bitwise & when checking for equality to an enum entry (which is often 0)
 * Fixes for some copy paste errors (e.g. FoliageEdMode.cpp)

[CL 2498053 by Dan Oconnor in Main branch]
2015-03-31 20:12:31 -04:00
Mike Fricker
701ad40823 Improved support for Clang C++ compiler on Windows
- The entire editor can now be compiled using Clang on Windows.  It also runs (as long as you use the MSVC linker.)
- Use UEBuildWindows.bCompileWithClang=true to help test Clang support
- Most UE4 programs can now be compiled using Clang on Windows, and linked using the Clang linker on Windows
- Many C++ syntax fixes to resolve Clang errors and warnings when on Windows
- Clang on Windows now supports PCH files properly (but not "shared" PCHs, yet.)
- Hacked the DirectX XAudio2 headers slightly to work around a macro pasting bug in Clang

[CL 2494439 by Mike Fricker in Main branch]
2015-03-27 16:44:10 -04:00
Marc Audy
badac1ff91 Improve loading of large profiler data sets by not using AddUnique
#codereview Jaroslaw.Surowiec

[CL 2493719 by Marc Audy in Main branch]
2015-03-27 10:11:00 -04:00
Marc Audy
222a86873c Use FName.Compare instead of < and (non-existent) > FName operators
[CL 2493685 by Marc Audy in Main branch]
2015-03-27 09:55:20 -04:00
Marc Audy
c69dbe3a03 Slightly optimize string column sorting in profile tool
#codereview Jaroslaw.Surowiec

[CL 2493673 by Marc Audy in Main branch]
2015-03-27 09:38:01 -04:00
Jaroslaw Surowiec
a156331d5d Profiler - Fixes
[CL 2489031 by Jaroslaw Surowiec in Main branch]
2015-03-24 04:49:35 -04:00
Marc Audy
a425eba9ed Unify Slate's FInputGesture and Engine's FInputChord as FInputChord defined in Slate
[CL 2481648 by Marc Audy in Main branch]
2015-03-17 11:36:28 -04:00
Marc Audy
f2bda7c975 Fix shadowed variables
[CL 2468158 by Marc Audy in Main branch]
2015-03-03 17:20:43 -05:00
Saul Abreu
79a26091bf Fixed behavior on FString::ParseIntoArray (muliple delimiters overload) functionality to support optionally culling empty strings. Greatly simplified implementation logic. Output parameter now properly named and taken by reference.
#codereview Steve.Robb, Robert.Manuszewski

[CL 2466824 by Saul Abreu in Main branch]
2015-03-02 15:51:37 -05:00
Marc Audy
daf220d485 Fix shadowed variables
[CL 2466748 by Marc Audy in Main branch]
2015-03-02 15:12:31 -05:00
Jaroslaw Surowiec
318962f6f9 Stats - Core implementation of the malloc profiler using the stats system (usage: run game with "-memoryprofiler", type in console "stat stopfile" to stop profiling)
#codereview Robert.Manuszewski

[CL 2446757 by Jaroslaw Surowiec in Main branch]
2015-02-16 04:53:09 -05:00
Jaroslaw Surowiec
3071ee1789 Profiler - Fixed Filters'n'Presets not being updated
[CL 2416959 by Jaroslaw Surowiec in Main branch]
2015-01-23 11:46:28 -05:00
Nick Atamas
f5e19bef14 Slate : RelativeLayoutScale is now computed in the SlatePrepass(). ComputeDesiredSize() now takes a float parameter. API-breaking change!
[CL 2406629 by Nick Atamas in Main branch]
2015-01-14 19:04:45 -05:00
Jaroslaw Surowiec
330c093072 Core - UE/UE-6813 - Confusing API: We have both FMemory::MemZero() and FMemory:Memzero()
[CL 2405765 by Jaroslaw Surowiec in Main branch]
2015-01-14 04:24:31 -05:00
Jaroslaw Surowiec
1085fb3b7a Core - UE/UE-6813 - Confusing API: We have both FMemory::MemZero() and FMemory:Memzero()
[CL 2405761 by Jaroslaw Surowiec in Main branch]
2015-01-14 04:21:10 -05:00
Jaroslaw Surowiec
13b0b48a74 Profiler - Fixed Filter'n'Presets not being updated
[CL 2402081 by Jaroslaw Surowiec in Main branch]
2015-01-09 12:56:42 -05:00
Steve Robb
0756ef15b9 Delegate comparisons deprecated, lots of other associated code deprecated, and lots of warning fixups:
* Multicast delegate Add* calls now return FDelegateHandles, and Remove* calls are now all deprecated, except for a new Remove function which takes a FDelegateHandle.
* New FConsoleManager::RegisterConsoleVariableSink_Handle and UnregisterConsoleVariableSink_Handle functions which work in terms of FConsoleVariableSinkHandle.
* Timer calls which don't take FTimerHandles are deprecated.
* FTicker::AddTicker now returns an FDelegateHandle and is removed by an overloaded Remove function.
* DEFINE_ONLINE_DELEGATE* macros now define _Handle variants of the Add/Remove functions which return/take handles.
* Various other handle-based registration changes.
* Some unity build fixes.
* Some simplification of delegate code.
* Fixes for lots of existing code to use handle-based registration and unregistration.

#codereview robert.manuszewski

[CL 2400883 by Steve Robb in Main branch]
2015-01-08 09:29:27 -05:00
Jamie Dale
a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE)

This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText.

[CL 2399803 by Jamie Dale in Main branch]
2015-01-07 09:52:40 -05:00
Dan Hertzka
1ce19a5ffa Full rename of the Slate "active tick" system to "active timer"
[CL 2394301 by Dan Hertzka in Main branch]
2014-12-19 17:44:49 -05:00