LibCore+LibWebView: Move process statistics to LibCore

This will be needed to collect statistics from processes that do not
have anything to do with LibWebView. The ProcessInfo structure must be
virtual to allow callers to add application-specific information.
This commit is contained in:
Timothy Flynn
2024-04-20 23:35:17 -04:00
committed by Andrew Kaster
parent ac594fae5e
commit 5dd3b91f0e
17 changed files with 176 additions and 126 deletions

View File

@@ -46,7 +46,7 @@
#endif
#if defined(AK_OS_MACOS)
# include <LibWebView/Platform/ProcessStatisticsMach.h>
# include <LibCore/Platform/ProcessStatisticsMach.h>
#endif
static ErrorOr<void> load_content_filters();
@@ -132,7 +132,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
#if defined(AK_OS_MACOS)
if (!mach_server_name.is_empty()) {
WebView::register_with_mach_server(mach_server_name);
Core::Platform::register_with_mach_server(mach_server_name);
}
#endif