Lines Matching refs:hprof

24 hprof = open(filename, "rb")  variable
26 def readu1(hprof): argument
27 return struct.unpack('!B', hprof.read(1))[0]
29 def readu2(hprof): argument
30 return struct.unpack('!H', hprof.read(2))[0]
32 def readu4(hprof): argument
33 return struct.unpack('!I', hprof.read(4))[0]
35 def readu8(hprof): argument
36 return struct.unpack('!Q', hprof.read(8))[0]
38 def readN(n, hprof): argument
40 return readu1(hprof)
42 return readu2(hprof)
44 return readu4(hprof)
46 return readu8(hprof)
102 c = hprof.read(1)
105 c = hprof.read(1)
109 idsize = readu4(hprof)
111 def readID(hprof): argument
112 return readN(idsize, hprof)
135 def readval(ty, hprof): argument
136 return readN(valsize(ty), hprof)
140 timestamp = (readu4(hprof) << 32) | readu4(hprof)
144 while hprof.read(1):
145 hprof.seek(-1,1)
146 pos = hprof.tell()
147 tag = readu1(hprof)
148 time = readu4(hprof)
149 length = readu4(hprof)
151 id = readID(hprof)
152 string = hprof.read(length - idsize)
156 serial = readu4(hprof)
157 classobj = readID(hprof)
158 stack = readu4(hprof)
159 classname = readID(hprof)
164 id = readID(hprof)
165 method = readID(hprof)
166 sig = readID(hprof)
167 file = readID(hprof)
168 serial = readu4(hprof)
169 line = readu4(hprof);
172 serial = readu4(hprof)
174 thread = readu4(hprof)
175 frames = readu4(hprof)
176 hprof.read(idsize * frames)
179 flags = readu2(hprof)
180 cutoff_ratio = readu4(hprof)
181 live_bytes = readu4(hprof)
182 live_insts = readu4(hprof)
183 alloc_bytes = readu8(hprof)
184 alloc_insts = readu8(hprof)
185 numsites = readu4(hprof)
187 indicator = readu1(hprof)
188 class_serial = readu4(hprof)
189 stack = readu4(hprof)
190 live_bytes = readu4(hprof)
191 live_insts = readu4(hprof)
192 alloc_bytes = readu4(hprof)
193 alloc_insts = readu4(hprof)
196 thread = readu4(hprof)
197 object = readID(hprof)
198 stack = readu4(hprof)
199 name = readID(hprof)
200 group_name = readID(hprof)
201 pgroup_name = readID(hprof)
204 thread = readu4(hprof)
213 subtag = readu1(hprof) ; length -= 1
216 objid = readID(hprof) ; length -= idsize
219 objid = readID(hprof) ; length -= idsize
220 ref = readID(hprof) ; length -= idsize
223 objid = readID(hprof) ; length -= idsize
224 thread = readu4(hprof) ; length -= 4
225 frame = readu4(hprof) ; length -= 4
228 objid = readID(hprof) ; length -= idsize
229 serial = readu4(hprof) ; length -= 4
230 frame = readu4(hprof) ; length -= 4
232 objid = readID(hprof) ; length -= idsize
233 serial = readu4(hprof) ; length -= 4
237 objid = readID(hprof) ; length -= idsize
240 objid = readID(hprof) ; length -= idsize
241 thread = readu4(hprof) ; length -= 4
244 objid = readID(hprof) ; length -= idsize
246 threadid = readID(hprof) ; length -= idsize
247 serial = readu4(hprof) ; length -= 4
248 stack = readu4(hprof) ; length -= 4
252 print " class class object ID: %s" % showclassobj(readID(hprof)) ; length -= idsize
253 print " stack trace serial number: #%d" % readu4(hprof) ; length -= 4
254 print " super class object ID: @%x" % readID(hprof) ; length -= idsize
255 print " class loader object ID: @%x" % readID(hprof) ; length -= idsize
256 print " signers object ID: @%x" % readID(hprof) ; length -= idsize
257 print " protection domain object ID: @%x" % readID(hprof) ; length -= idsize
258 print " reserved: @%x" % readID(hprof) ; length -= idsize
259 print " reserved: @%x" % readID(hprof) ; length -= idsize
260 print " instance size (in bytes): %d" % readu4(hprof) ; length -= 4
262 poolsize = readu2(hprof) ; length -= 2
265 idx = readu2(hprof) ; length -= 2
266 ty = readu1(hprof) ; length -= 1
267 val = readval(ty, hprof) ; length -= valsize(ty)
269 numstatic = readu2(hprof) ; length -= 2
273 nameid = readID(hprof) ; length -= idsize
274 ty = readu1(hprof) ; length -= 1
275 val = readval(ty, hprof) ; length -= valsize(ty)
277 numinst = readu2(hprof) ; length -= 2
281 nameid = readID(hprof) ; length -= idsize
282 ty = readu1(hprof) ; length -= 1
286 print " object ID: @%x" % readID(hprof) ; length -= idsize
287 stack = readu4(hprof) ; length -= 4
289 print " class object ID: %s" % showclassobj(readID(hprof)) ; length -= idsize
290 datalen = readu4(hprof) ; length -= 4
292 data = hprof.read(datalen) ; length -= datalen
295 print " array object ID: @%x" % readID(hprof) ; length -= idsize
296 stack = readu4(hprof) ; length -= 4
298 count = readu4(hprof) ; length -= 4
299 print " array class object ID: %s" % showclassobj(readID(hprof)) ; length -= idsize
300 hprof.read(idsize * count) ; length -= (idsize * count)
303 print " array object ID: @%x" % readID(hprof) ; length -= idsize
304 stack = readu4(hprof) ; length -= 4
305 count = readu4(hprof) ; length -= 4
306 ty = readu1(hprof) ; length -= 1
307 hprof.read(valsize(ty)*count) ; length -= (valsize(ty)*count)
310 objid = readID(hprof) ; length -= idsize
312 objid = readID(hprof) ; length -= idsize
313 print " HPROF ROOT DEBUGGER @%x (at offset %d)" % (objid, hprof.tell() - (idsize + 1))
315 objid = readID(hprof) ; length -= idsize
318 hty = readu4(hprof) ; length -= 4
319 hnameid = readID(hprof) ; length -= idsize
324 flags = readu4(hprof)
325 depth = readu2(hprof)