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

Method FindFirstAsciiString

deps/v8/tools/grokdump.py:2249–2259  ·  view source on GitHub ↗

Walk the memory until we find a large string

(self, start, end=None, min_length=32)

Source from the content-addressed store, hash-verified

2247 self.reader.FormatIntPtr(self.known_first_old_page)))
2248
2249 def FindFirstAsciiString(self, start, end=None, min_length=32):
2250 """ Walk the memory until we find a large string """
2251 if not end:
2252 end = start + 64
2253 for slot in range(start, end):
2254 if not self.reader.IsValidAddress(slot):
2255 break
2256 message = self.reader.ReadAsciiString(slot)
2257 if len(message) > min_length:
2258 return (slot, message)
2259 return (None,None)
2260
2261 def PrintStackTraceMessage(self, start=None, print_message=True):
2262 """

Callers 6

TryExtractStackTraceMethod · 0.95
output_stack_traceMethod · 0.80

Calls 3

IsValidAddressMethod · 0.80
ReadAsciiStringMethod · 0.80
rangeFunction · 0.50

Tested by

no test coverage detected