From 455f5528608de8fe3bfcf674c0e0e31797c9ab8b Mon Sep 17 00:00:00 2001 From: Richard Uhler Date: Wed, 4 Oct 2017 09:50:30 +0100 Subject: Use decode instead of parseLong for query params. This makes it possible to enter a hex id of an object in the url, where before you had to manually translate the hex id to decimal first. Switch to using the hex format for the id in links to be more consistent with the summary presentation of objects. Bug: 28669428 Test: m ahat-test Test: ahat test-dump/O.hprof, visit http://localhost:7100/object?id=0x6004fdb8 Test: launch ahat and click on object links and confirm they still work. Test: run ahat on a heap dump with bitmaps and confirm they still show up. Change-Id: Ia6a84b4674a95519dce1ff701086a86d551a51d1 --- tools/ahat/src/ObjectHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/ahat/src/ObjectHandler.java') diff --git a/tools/ahat/src/ObjectHandler.java b/tools/ahat/src/ObjectHandler.java index 79f8b76c92..da4d9cce9d 100644 --- a/tools/ahat/src/ObjectHandler.java +++ b/tools/ahat/src/ObjectHandler.java @@ -257,7 +257,7 @@ class ObjectHandler implements AhatHandler { if (bitmap != null) { doc.section("Bitmap Image"); doc.println(DocString.image( - DocString.formattedUri("bitmap?id=%d", bitmap.getId()), "bitmap image")); + DocString.formattedUri("bitmap?id=0x%x", bitmap.getId()), "bitmap image")); } } -- cgit v1.2.3-59-g8ed1b