OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2368 f.write("<tr>\n") | 2368 f.write("<tr>\n") |
2369 | 2369 |
2370 f.write(" <td>") | 2370 f.write(" <td>") |
2371 self.output_comment_box(f, "da-", slot) | 2371 self.output_comment_box(f, "da-", slot) |
2372 f.write("</td>\n") | 2372 f.write("</td>\n") |
2373 f.write(" ") | 2373 f.write(" ") |
2374 self.td_from_address(f, slot) | 2374 self.td_from_address(f, slot) |
2375 f.write(address_fmt % self.format_address(slot)) | 2375 f.write(address_fmt % self.format_address(slot)) |
2376 f.write(" ") | 2376 f.write(" ") |
2377 self.td_from_address(f, maybe_address) | 2377 self.td_from_address(f, maybe_address) |
2378 f.write(": %s </td>\n" % straddress) | 2378 f.write(": %s </td>\n" % straddress) |
2379 f.write(" <td>") | 2379 f.write(" <td>") |
2380 if maybe_address != None: | 2380 if maybe_address != None: |
2381 self.output_comment_box( | 2381 self.output_comment_box( |
2382 f, "sv-" + self.reader.FormatIntPtr(slot), maybe_address) | 2382 f, "sv-" + self.reader.FormatIntPtr(slot), maybe_address) |
2383 f.write(" </td>\n") | 2383 f.write(" </td>\n") |
2384 f.write(" <td>%s</td>\n" % (heap_object or '')) | 2384 f.write(" <td>%s</td>\n" % (heap_object or '')) |
2385 f.write("</tr>\n") | 2385 f.write("</tr>\n") |
2386 f.write("</table>\n") | 2386 f.write("</table>\n") |
2387 f.write("</div>") | 2387 f.write("</div>") |
2388 return | 2388 return |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3164 try: | 3164 try: |
3165 server = InspectionWebServer(PORT_NUMBER, options, args[0]) | 3165 server = InspectionWebServer(PORT_NUMBER, options, args[0]) |
3166 print 'Started httpserver on port ' , PORT_NUMBER | 3166 print 'Started httpserver on port ' , PORT_NUMBER |
3167 webbrowser.open('http://localhost:%i/summary.html' % PORT_NUMBER) | 3167 webbrowser.open('http://localhost:%i/summary.html' % PORT_NUMBER) |
3168 server.serve_forever() | 3168 server.serve_forever() |
3169 except KeyboardInterrupt: | 3169 except KeyboardInterrupt: |
3170 print '^C received, shutting down the web server' | 3170 print '^C received, shutting down the web server' |
3171 server.socket.close() | 3171 server.socket.close() |
3172 else: | 3172 else: |
3173 AnalyzeMinidump(options, args[0]) | 3173 AnalyzeMinidump(options, args[0]) |
OLD | NEW |