start_web_ui revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
1#!/usr/bin/env python 2# Copyright 2014 The Chromium Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6import memory_inspector 7import webbrowser 8 9from memory_inspector.frontends import www_server 10 11 12if __name__ == '__main__': 13 HTTP_PORT=8089 14 memory_inspector.RegisterAllBackends() 15 print 'Serving on port %d' % HTTP_PORT 16 webbrowser.open('http://localhost:%d' % HTTP_PORT) 17 www_server.Start(HTTP_PORT)