Home | History | Annotate | Download | only in memory_inspector
      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 
      6 import logging
      7 import webbrowser
      8 
      9 from memory_inspector.frontends import www_server
     10 
     11 
     12 if __name__ == '__main__':
     13   HTTP_PORT=8089
     14   logging.getLogger().setLevel(logging.WARNING)
     15   print 'Serving on port %d' % HTTP_PORT
     16   webbrowser.open('http://localhost:%d' % HTTP_PORT)
     17   www_server.Start(HTTP_PORT)