def start(host, port, profile_stats, dont_start_browser):
    """Starts HTTP server with specified parameters.

    Args:
        host: Server hostname.
        port: Server port.
        profile_stats: Dict with collected progran stats.
        dont_start_browser: Whether to start browser after profiling.
    """
    stats_handler = functools.partial(StatsHandler, profile_stats)
    if not dont_start_browser:
        webbrowser.open('http://{}:{}/'.format(host, port))
    try:
        StatsServer((host, port), stats_handler).serve_forever()
    except __HOLE__:
        print('Stopping...')
        sys.exit(0)
dataset/ETHPy150Open nvdv/vprof/vprof/stats_server.py/start