Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 99dbf190711012921585003f644a6f8993d8b71c
      
https://github.com/WebKit/WebKit/commit/99dbf190711012921585003f644a6f8993d8b71c
  Author: Adrien Destugues <[email protected]>
  Date:   2025-12-08 (Mon, 08 Dec 2025)

  Changed paths:
    M Source/WTF/wtf/FastMalloc.cpp
    M Source/WTF/wtf/PlatformHaiku.cmake
    A Source/WTF/wtf/haiku/CurrentProcessMemoryStatus.cpp
    A Source/WTF/wtf/haiku/CurrentProcessMemoryStatus.h
    A Source/WTF/wtf/haiku/MemoryFootprintHaiku.cpp
    M Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp

  Log Message:
  -----------
  WTF Memory management functions for Haiku

Reviewed by Adrian Perez de Castro.

Add needed support to get memory size and usage on Haiku.
Existing code is not suitable because of use of getrusage (not all
returned fields are in POSIX), /proc filesystem, or other nonstandard
code.

No new tests: no impact on other ports.
* Source/WTF/wtf/FastMalloc.cpp:
(WTF::fastMallocStatistics): Implement getting RAM usage for Haiku.
* Source/WTF/wtf/PlatformHaiku.cmake: Add new files to the build.
* Source/WTF/wtf/haiku/CurrentProcessMemoryStatus.cpp: Added.
(WTF::currentProcessMemoryStatus): Get memory usage for Haiku.
* Source/WTF/wtf/haiku/CurrentProcessMemoryStatus.h: Added.
* Source/WTF/wtf/haiku/MemoryFootprintHaiku.cpp: Added.
(WTF::memoryFootprint): Get memory usage for Haiku.
* Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp:
(WTF::processMemoryUsage): Wire access to memory usage in a way similar to 
Linux.

Canonical link: https://commits.webkit.org/304097@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to