Home
last modified time | relevance | path

Searched refs:DocString (Results 1 – 21 of 21) sorted by relevance

/art/tools/ahat/src/main/com/android/ahat/
DDocString.java26 class DocString { class
29 public DocString() { in DocString() method in DocString
36 public static DocString text(String str) { in text()
37 DocString doc = new DocString(); in text()
44 public static DocString format(String format, Object... args) { in format()
45 DocString doc = new DocString(); in format()
52 public static DocString link(URI uri, DocString content) { in link()
53 DocString doc = new DocString(); in link()
60 public static DocString image(URI uri, String alt) { in image()
61 return (new DocString()).appendImage(uri, alt); in image()
[all …]
DMenu.java23 private static DocString mMenu =
24 DocString.link(DocString.uri("/"), DocString.text("overview"))
26 .appendLink(DocString.uri("rooted"), DocString.text("rooted"))
28 .appendLink(DocString.uri("sites"), DocString.text("allocations"));
33 public static DocString getMenu() { in getMenu()
DSummarizer.java38 public static DocString summarize(AhatInstance inst) { in summarize()
39 DocString formatted = new DocString(); in summarize()
47 formatted.append(DocString.added("new ")); in summarize()
52 formatted.append(DocString.removed("del ")); in summarize()
66 DocString linkText = DocString.text(inst.toString()); in summarize()
71 URI objTarget = DocString.formattedUri("object?id=0x%x", inst.getId()); in summarize()
105 URI uri = DocString.formattedUri("bitmap?id=0x%x", bitmap.getId()); in summarize()
139 public static DocString summarize(Value value) { in summarize()
141 return DocString.text("null"); in summarize()
146 return DocString.text(value.toString()); in summarize()
[all …]
DDoc.java33 void menu(DocString string); in menu()
43 void println(DocString string); in println()
48 void big(DocString string); in big()
71 void table(DocString description, List<Column> subcols, List<Column> cols); in table()
78 void row(DocString... values); in row()
91 void description(DocString key, DocString value); in description()
DSizeTable.java62 static void row(Doc doc, DocString left, Size size, Size base, DocString... values) { in row()
63 List<DocString> vals = new ArrayList<DocString>(); in row()
65 vals.add(DocString.size(size.getJavaSize(), false)); in row()
66 vals.add(DocString.delta(false, false, size.getJavaSize(), base.getJavaSize())); in row()
67 vals.add(DocString.size(size.getRegisteredNativeSize(), false)); in row()
68 vals.add(DocString.delta(false, false, in row()
70 vals.add(DocString.size(size.getSize(), false)); in row()
71 vals.add(DocString.delta(false, false, size.getSize(), base.getSize())); in row()
73 doc.row(vals.toArray(new DocString[vals.size()])); in row()
96 static void row(Doc doc, Size size, Size base, DocString... values) { in row()
[all …]
DObjectsHandler.java83 doc.description(DocString.text("Site"), Summarizer.summarize(site)); in handle()
84 doc.description(DocString.text("Class"), DocString.text(className)); in handle()
86 DocString subclassChoice = DocString.text(subclass ? "included" : "excluded"); in handle()
89 DocString.text(subclass ? "excluded" : "included")); in handle()
91 doc.description(DocString.text("Subclasses"), subclassChoice); in handle()
93 DocString heapChoice = DocString.text(heapName == null ? "any" : heapName); in handle()
101 DocString.text(heap.getName())); in handle()
109 DocString.text("any")); in handle()
112 doc.description(DocString.text("Heap"), heapChoice); in handle()
114 doc.description(DocString.text("Count"), DocString.format("%,14d", insts.size())); in handle()
[all …]
DObjectHandler.java60 doc.println(DocString.format("No object with id %08xl", id)); in handle()
77 doc.description(DocString.text("Class"), Summarizer.summarize(cls)); in handle()
79 doc.description(DocString.text("Heap"), DocString.text(inst.getHeap().getName())); in handle()
83 DocString types = new DocString(); in handle()
90 doc.description(DocString.text("Root Types"), types); in handle()
97 SizeTable.row(doc, DocString.text("Shallow"), inst.getSize(), base.getSize()); in handle()
98 SizeTable.row(doc, DocString.text("Retained"), in handle()
135 DocString delta = new DocString(); in printArrayElements()
143 doc.row(DocString.format("%d", i), Summarizer.summarize(current), delta); in printArrayElements()
178 DocString was = DocString.text("was "); in printFields()
[all …]
DColumn.java23 public DocString heading;
31 public Column(DocString heading, Align align, boolean visible) { in Column()
38 this(DocString.text(heading), align, visible); in Column()
41 public Column(DocString heading, Align align) { in Column()
49 this(DocString.text(heading), Align.LEFT); in Column()
56 this(DocString.text(heading), align); in Column()
DOverviewHandler.java47 DocString.text("ahat version"), in handle()
48 DocString.format("ahat-%s", OverviewHandler.class.getPackage().getImplementationVersion())); in handle()
50 DocString.text("--retained"), in handle()
51 DocString.text(mRetained.toString())); in handle()
52 doc.description(DocString.text("hprof file"), DocString.text(mHprof.toString())); in handle()
54 doc.description(DocString.text("baseline hprof file"), DocString.text(mBaseHprof.toString())); in handle()
72 SizeTable.row(doc, DocString.text(heap.getName()), size, base); in printHeapSizes()
77 SizeTable.row(doc, DocString.text("Total"), totalSize, totalBase); in printHeapSizes()
DHeapTable.java36 DocString render(T element); in render()
78 doc.table(DocString.text(config.getHeapsDescription()), subcols, cols); in render()
82 ArrayList<DocString> vals = new ArrayList<DocString>(); in render()
93 vals.add(DocString.size(size, elem.isPlaceHolder())); in render()
94 vals.add(DocString.delta(elem.isPlaceHolder(), base.isPlaceHolder(), size, basesize)); in render()
96 vals.add(DocString.size(total, elem.isPlaceHolder())); in render()
97 vals.add(DocString.delta(elem.isPlaceHolder(), base.isPlaceHolder(), total, basetotal)); in render()
102 doc.row(vals.toArray(new DocString[0])); in render()
133 vals.add(DocString.size(size, false)); in render()
134 vals.add(DocString.delta(false, false, size, basesize)); in render()
[all …]
DHtmlDoc.java35 public HtmlDoc(PrintStream ps, DocString title, URI style) { in HtmlDoc()
51 ps.print(DocString.text(String.format(format, args)).html()); in title()
56 public void menu(DocString string) { in menu()
63 ps.print(DocString.text(title).html()); in section()
68 public void println(DocString string) { in println()
74 public void big(DocString str) { in big()
102 public void table(DocString description, List<Column> subcols, List<Column> cols) { in table()
145 public void row(DocString... values) { in row()
175 public void description(DocString key, DocString value) { in description()
DSubsetSelector.java86 DocString menu = new DocString(); in render()
90 menu.appendLink(mQuery.with(mId, 0), DocString.text("show none")); in render()
92 menu.appendLink(mQuery.with(mId, less), DocString.text("show less")); in render()
99 menu.appendLink(mQuery.with(mId, more), DocString.text("show more")); in render()
101 menu.appendLink(mQuery.with(mId, all), DocString.text("show all")); in render()
DSiteHandler.java55 doc.println(DocString.text("(none)")); in handle()
73 public DocString render(Site element) { in handle()
102 DocString.link( in handle()
103 DocString.formattedUri("objects?id=%d&heap=%s&class=%s", in handle()
105 DocString.format("%,14d", info.numInstances)), in handle()
106 DocString.delta(false, false, info.numInstances, baseinfo.numInstances), in handle()
107 DocString.text(info.heap.getName()), in handle()
DStaticHandler.java44 HtmlDoc doc = new HtmlDoc(ps, DocString.text("ahat"), DocString.uri("style.css")); in handle()
45 doc.big(DocString.text("Resource not found.")); in handle()
DSitePrinter.java50 public DocString render(Site element) { in printSite()
51 DocString str = new DocString(); in printSite()
DBitmapHandler.java57 HtmlDoc doc = new HtmlDoc(ps, DocString.text("ahat"), DocString.uri("style.css")); in handle()
58 doc.big(DocString.text("No bitmap found for the given request.")); in handle()
DAhatHttpHandler.java43 HtmlDoc doc = new HtmlDoc(ps, DocString.text("ahat"), DocString.uri("style.css")); in handle()
DDominatedList.java68 public DocString render(AhatInstance element) { in getValueConfigs()
DQuery.java105 return DocString.uri(newQuery.toString()); in with()
/art/tools/ahat/src/test/com/android/ahat/
DTestHandler.java37 HtmlDoc doc = new HtmlDoc(ps, DocString.text("noCrash test"), DocString.uri("style.css")); in testNoCrash()
38 Query query = new Query(DocString.uri(uri)); in testNoCrash()
DPerformanceTest.java48 HtmlDoc doc = new HtmlDoc(ps, DocString.text("bigArray test"), DocString.uri("style.css")); in bigArray()
50 Query query = new Query(DocString.uri(uri)); in bigArray()