[webkit-changes] [WebKit/WebKit] 696e22: Add flag to dump-class-layout to skip nested classes

Tadeu Zagallo noreply at github.com
Mon Feb 20 12:40:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 696e225e79a2e81b02773273d57e3613c9fb0db2
      https://github.com/WebKit/WebKit/commit/696e225e79a2e81b02773273d57e3613c9fb0db2
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-02-20 (Mon, 20 Feb 2023)

  Changed paths:
    M Tools/Scripts/dump-class-layout
    M Tools/lldb/lldb_dump_class_layout.py

  Log Message:
  -----------
  Add flag to dump-class-layout to skip nested classes
https://bugs.webkit.org/show_bug.cgi?id=252477
rdar://105593812

Reviewed by Simon Fraser.

Add a `-s` or `--skip-nested` flag that stops `dump-class-layout` from recursively
printing members that are classes/structs. This can be helpful to look at the padding
of the top-level class individually.

* Tools/Scripts/dump-class-layout:
* Tools/lldb/lldb_dump_class_layout.py:
(ClassLayout.__init__):
(ClassLayout._parse):
(LLDBDebuggerInstance.layout_for_classname):

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




More information about the webkit-changes mailing list