Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fdc2659799c04e8f04466f8726c3a73b198b13e1
https://github.com/WebKit/WebKit/commit/fdc2659799c04e8f04466f8726c3a73b198b13e1
Author: Vassili Bykov <[email protected]>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M Source/WTF/WTF.xcodeproj/project.pbxproj
M Source/WTF/wtf/CMakeLists.txt
A Source/WTF/wtf/MemoryDump.h
M Source/WTF/wtf/PrintStream.cpp
M Source/WTF/wtf/PrintStream.h
M Tools/TestWebKitAPI/CMakeLists.txt
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WTF/MemoryDump.cpp
Log Message:
-----------
Introduce MemoryDump printing utility for dataLog()
https://bugs.webkit.org/show_bug.cgi?id=304214
rdar://166570876
Reviewed by Dan Hecht and Keith Miller.
It's sometimes helpful in trace output to print relatively large chunks of raw
data such as
stack frames in the traditional hex dump form. This patch introduces a new
printing
plug-in for dataLog() to do just that.
Examples:
dataLogLn("Interesting data:", MemoryDump(startPtr, endPtr));
dataLogLn("Interesting data:", MemoryDump(std::span(data)));
The style checker is unhappy with the usage of 'out.printf()' in the code added
to
PrintStream.cpp, however that is consistent with the rest of that file.
Tests: Tools/TestWebKitAPI/Tests/WTF/MemoryDump.cpp
Canonical link: https://commits.webkit.org/304560@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications