Prefix localhost with http:// in terminal output from server startup.
With this change, I can Ctrl-click in the terminal to open the page in
my browser.
Test: Ran ahat on a heap dump and was able to click to open in my browser.
Change-Id: Ic5e1867d7e4cdbd331fad4a9bb5170bac4f1b095
diff --git a/tools/ahat/src/main/com/android/ahat/Main.java b/tools/ahat/src/main/com/android/ahat/Main.java
index 7632f6a..586f95e 100644
--- a/tools/ahat/src/main/com/android/ahat/Main.java
+++ b/tools/ahat/src/main/com/android/ahat/Main.java
@@ -190,7 +190,7 @@
server.createContext("/bitmap", new BitmapHandler(ahat));
server.createContext("/style.css", new StaticHandler("etc/style.css", "text/css"));
server.setExecutor(Executors.newFixedThreadPool(1));
- System.out.println("Server started on localhost:" + port);
+ System.out.println("Server started on http://localhost:" + port);
server.start();
}