diff options
author | 2017-02-21 10:54:51 +0000 | |
---|---|---|
committer | 2017-02-21 10:54:52 +0000 | |
commit | 89bed6d6fcd687cfedd10c14927c104eddf99c7f (patch) | |
tree | c044cdb91c15a4827cb1a15a6b35cd6b7ef9e37b /tools/ahat/test/PerformanceTest.java | |
parent | 8ca86eae1f6030782b2646b5b5b0976e06227233 (diff) | |
parent | d640e29f9dad93f51e74026327dd53bb5a30eb33 (diff) |
Merge changes Ic39b6d55,Id9a392ac,I1a6b05ea
* changes:
Show unreachable objects in ahat.
ahat: add support for diffing two heap dumps.
Refactor ahat's perflib api.
Diffstat (limited to 'tools/ahat/test/PerformanceTest.java')
-rw-r--r-- | tools/ahat/test/PerformanceTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/ahat/test/PerformanceTest.java b/tools/ahat/test/PerformanceTest.java index 6e46800603..e13974bb6f 100644 --- a/tools/ahat/test/PerformanceTest.java +++ b/tools/ahat/test/PerformanceTest.java @@ -16,13 +16,15 @@ package com.android.ahat; -import com.android.tools.perflib.heap.Instance; +import com.android.ahat.heapdump.AhatInstance; +import com.android.ahat.heapdump.AhatSnapshot; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; +import org.junit.Test; + import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; -import org.junit.Test; public class PerformanceTest { private static class NullOutputStream extends OutputStream { @@ -36,7 +38,7 @@ public class PerformanceTest { // for any object, including big arrays. TestDump dump = TestDump.getTestDump(); - Instance bigArray = (Instance)dump.getDumpedThing("bigArray"); + AhatInstance bigArray = dump.getDumpedAhatInstance("bigArray"); assertNotNull(bigArray); AhatSnapshot snapshot = dump.getAhatSnapshot(); |