MCPcopy Index your code
hub / github.com/nodejs/node / do_display_stack_objects

Method do_display_stack_objects

deps/v8/tools/grokdump.py:3907–3928  ·  view source on GitHub ↗

Find and Print object pointers in the given range. Print all possible object pointers that are on the stack or in the given address range. Usage: dso [START_ADDR,[END_ADDR]]

(self, args)

Source from the content-addressed store, hash-verified

3905 return self.do_display_stack_objects(args)
3906
3907 def do_display_stack_objects(self, args):
3908 """
3909 Find and Print object pointers in the given range.
3910
3911 Print all possible object pointers that are on the stack or in the given
3912 address range.
3913
3914 Usage: dso [START_ADDR,[END_ADDR]]
3915 """
3916 start = self.reader.StackTop()
3917 end = self.reader.StackBottom()
3918 if len(args) != 0:
3919 args = args.split(' ')
3920 start = self.ParseAddressExpr(args[0])
3921 end = self.ParseAddressExpr(args[1]) if len(args) > 1 else end
3922 objects = self.heap.FindObjectPointers(start, end)
3923 for address in objects:
3924 heap_object = self.padawan.SenseObject(address)
3925 info = ""
3926 if heap_object:
3927 info = str(heap_object)
3928 print("%s %s" % (self.padawan.FormatIntPtr(address), info))
3929
3930 def do_do_desc(self, address):
3931 """

Callers 1

do_dsoMethod · 0.95

Calls 9

ParseAddressExprMethod · 0.95
strFunction · 0.85
StackTopMethod · 0.80
StackBottomMethod · 0.80
FindObjectPointersMethod · 0.80
SenseObjectMethod · 0.80
printFunction · 0.70
splitMethod · 0.45
FormatIntPtrMethod · 0.45

Tested by

no test coverage detected