Lines Matching refs:file
5 # you may not use this file except in compliance with the License.
20 Panda runtime writes memory reports into memdump.bin file at runtime destruction and at SIGUSR2
21 signal. This script is aimed to analyse memdump.bin file.
105 def read_string(file):
106 """Reads string from file"""
108 num = struct.unpack('I', file.read(4))[0]
109 return file.read(num).decode('utf-8')
158 help='Filter allocations by a string in stacktrace (it may be a function of file and line)')
173 with open(args.input_file, "rb") as file:
174 num_items, num_stacktraces = struct.unpack('II', file.read(8))
178 stacktraces[stacktrace_id] = read_string(file)
184 tag = struct.unpack_from("I", file.read(4))[0]
187 "IIII", file.read(16))
198 alloc_id = struct.unpack("I", file.read(4))[0]
206 raise Exception("Invalid file format")