1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 20:07:34 +00:00
serenity/Userland/DevTools/Profiler
Lucas CHOLLET 1a97382305 LibGUI: Make Application's construction fallible
The pattern to construct `Application` was to use the `try_create`
method from the `C_OBJECT` macro. While being safe from an OOM
perspective, this method doesn't propagate errors from the constructor.
This patch make `Application` use the `C_OBJECT_ABSTRACT` and manually
define a `create` method that can bubble up errors from the
construction stage.

This commit also removes the ability to use `argc` and `argv` to
create an `Application`, only `Main`'s `Arguments` can be used.

From a user point of view, the patch renames `try_create` => `create`,
hence the huge number of modified files.
2023-05-05 16:41:21 +01:00
..
CMakeLists.txt Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
DisassemblyModel.cpp Profiler: Standardize percentage formatting 2023-02-02 14:37:01 +01:00
DisassemblyModel.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
EventSerialNumber.h Profiler: Use sequential serial numbers for profiling events 2021-06-03 01:16:32 +01:00
FilesystemEventModel.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
FilesystemEventModel.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FlameGraphView.cpp LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
FlameGraphView.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Gradient.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
Gradient.h Profiler: Extract percentage gradient calculation into its own file 2021-12-28 23:17:24 +01:00
Histogram.h Profiler: Add histogram for sample counts 2021-05-14 00:35:57 +02:00
IndividualSampleModel.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
IndividualSampleModel.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
main.cpp LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
PercentageFormatting.h Profiler: Standardize percentage formatting 2023-02-02 14:37:01 +01:00
Process.cpp Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
Process.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Profile.cpp Everywhere: Remove NonnullOwnPtr.h includes 2023-03-06 23:46:35 +01:00
Profile.h Everywhere: Remove NonnullRefPtr.h includes 2023-03-06 23:46:35 +01:00
ProfileModel.cpp Profiler: Standardize percentage formatting 2023-02-02 14:37:01 +01:00
ProfileModel.h Profiler: Standardize percentage formatting 2023-02-02 14:37:01 +01:00
SamplesModel.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
SamplesModel.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SignpostsModel.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SignpostsModel.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceModel.cpp LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
SourceModel.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TimelineContainer.cpp Profiler: Fix unmovable splitter 2022-08-16 16:53:24 +02:00
TimelineContainer.h DevTools: Use default constructors/destructors 2022-02-16 07:33:15 -05:00
TimelineHeader.cpp LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
TimelineHeader.h Userland: Fix remaining smart pointer const-correctness issues 2023-02-21 00:54:04 +01:00
TimelineTrack.cpp LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
TimelineTrack.h DevTools: Use default constructors/destructors 2022-02-16 07:33:15 -05:00
TimelineView.cpp DevTools: Use default constructors/destructors 2022-02-16 07:33:15 -05:00
TimelineView.h DevTools: Use default constructors/destructors 2022-02-16 07:33:15 -05:00