ProcessStatistics.h 404 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Error.h>
  8. #include <AK/Vector.h>
  9. #include <LibWebView/Platform/ProcessInfo.h>
  10. namespace WebView {
  11. struct ProcessStatistics {
  12. u64 total_time_scheduled = 0;
  13. Vector<ProcessInfo> processes;
  14. };
  15. ErrorOr<void> update_process_statistics(ProcessStatistics&);
  16. }