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

Method __init__

deps/v8/tools/grokdump.py:2883–2907  ·  view source on GitHub ↗
(self, switches, minidump_name, http_server)

Source from the content-addressed store, hash-verified

2881 CONTEXT_SHORT = 1
2882
2883 def __init__(self, switches, minidump_name, http_server):
2884 self.dumpfilename = os.path.split(minidump_name)[1]
2885 self.encfilename = urllib.parse.urlencode({'dump': self.dumpfilename})
2886 self.reader = MinidumpReader(switches, minidump_name)
2887 self.server = http_server
2888
2889 # Set up the heap
2890 exception_thread = self.reader.thread_map[self.reader.exception.thread_id]
2891 stack_top = self.reader.ExceptionSP()
2892 stack_bottom = exception_thread.stack.start + \
2893 exception_thread.stack.memory.data_size
2894 stack_map = {self.reader.ExceptionIP(): -1}
2895 for slot in range(stack_top, stack_bottom,
2896 self.reader.MachinePointerSize()):
2897 maybe_address = self.reader.ReadUIntPtr(slot)
2898 if not maybe_address in stack_map:
2899 stack_map[maybe_address] = slot
2900 self.heap = V8Heap(self.reader, stack_map)
2901
2902 self.padawan = InspectionPadawan(self.reader, self.heap)
2903 self.comments = InspectionInfo(minidump_name, self.reader)
2904 self.padawan.known_first_old_page = (
2905 self.comments.get_page_address("oldpage"))
2906 self.padawan.known_first_map_page = (
2907 self.comments.get_page_address("mappage"))
2908
2909 def set_comment(self, straddress, comment):
2910 try:

Callers

nothing calls this directly

Calls 11

MinidumpReaderClass · 0.85
V8HeapClass · 0.85
InspectionPadawanClass · 0.85
InspectionInfoClass · 0.85
ExceptionSPMethod · 0.80
ExceptionIPMethod · 0.80
ReadUIntPtrMethod · 0.80
get_page_addressMethod · 0.80
rangeFunction · 0.50
splitMethod · 0.45
MachinePointerSizeMethod · 0.45

Tested by

no test coverage detected