Home
last modified time | relevance | path

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

/art/tools/ahat/src/
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"))
30 .appendLink(DocString.uri("native"), DocString.text("native"))
32 .appendLink(DocString.uri("help"), DocString.text("help"));
37 public static DocString getMenu() { in getMenu()
DDocString.java27 class DocString { class
30 public DocString() { in DocString() method in DocString
37 public static DocString text(String str) { in text()
38 DocString doc = new DocString(); in text()
45 public static DocString format(String format, Object... args) { in format()
46 DocString doc = new DocString(); in format()
53 public static DocString link(URI uri, DocString content) { in link()
54 DocString doc = new DocString(); in link()
62 public static DocString image(URI uri, String alt) { in image()
63 return (new DocString()).appendImage(uri, alt); in image()
[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()
DNativeAllocationsHandler.java45 doc.description(DocString.text("Number of Registered Native Allocations"), in handle()
46 DocString.format("%,14d", allocs.size())); in handle()
47 doc.description(DocString.text("Total Size of Registered Native Allocations"), in handle()
48 DocString.format("%,14d", totalSize)); in handle()
53 doc.println(DocString.text("(none)")); in handle()
69 DocString.format("%,14d", alloc.size), in handle()
70 DocString.text(alloc.heap.getName()), in handle()
71 DocString.format("0x%x", alloc.pointer), in handle()
84 DocString.format("%,14d", total), in handle()
85 DocString.text("..."), in handle()
[all …]
DValue.java35 private static DocString renderInstance(AhatSnapshot snapshot, Instance inst) { in renderInstance()
36 DocString formatted = new DocString(); in renderInstance()
49 DocString link = new DocString(); in renderInstance()
56 URI objTarget = DocString.formattedUri("object?id=%d", inst.getId()); in renderInstance()
91 URI uri = DocString.formattedUri("bitmap?id=%d", bitmap.getId()); in renderInstance()
100 public static DocString render(AhatSnapshot snapshot, Object val) { in render()
104 return DocString.format("%s", val); in render()
DObjectHandler.java57 doc.println(DocString.format("No object with id %08xl", id)); in handle()
70 doc.description(DocString.text("Class"), Value.render(mSnapshot, cls)); in handle()
71 doc.description(DocString.text("Size"), DocString.format("%d", inst.getSize())); in handle()
73 DocString.text("Retained Size"), in handle()
74 DocString.format("%d", inst.getTotalRetainedSize())); in handle()
75 doc.description(DocString.text("Heap"), DocString.text(inst.getHeap().getName())); in handle()
79 DocString types = new DocString(); in handle()
86 doc.description(DocString.text("Root Types"), types); in handle()
111 DocString.text(field.getField().getType().toString()), in printClassInstanceFields()
112 DocString.text(field.getField().getName()), in printClassInstanceFields()
[all …]
DOverviewHandler.java44 DocString.text("ahat version"), in handle()
45 DocString.format("ahat-%s", OverviewHandler.class.getPackage().getImplementationVersion())); in handle()
46 doc.description(DocString.text("hprof file"), DocString.text(mHprof.toString())); in handle()
60 doc.description(DocString.text("Number of Registered Native Allocations"), in handle()
61 DocString.format("%,14d", allocs.size())); in handle()
62 doc.description(DocString.text("Total Size of Registered Native Allocations"), in handle()
63 DocString.format("%,14d", totalSize)); in handle()
DSiteHandler.java49 doc.println(DocString.text("(none)")); in handle()
68 public DocString render(Site element) { in handle()
69 return DocString.link( in handle()
70 DocString.formattedUri("site?stack=%d&depth=%d", in handle()
72 DocString.text(element.getName())); in handle()
98 DocString.format("%,14d", info.numBytes), in handle()
99 DocString.link( in handle()
100 DocString.formattedUri("objects?stack=%d&depth=%d&heap=%s&class=%s", in handle()
102 DocString.format("%,14d", info.numInstances)), in handle()
103 DocString.text(info.heap.getName()), in handle()
DHeapTable.java34 DocString render(T element); in render()
76 doc.table(DocString.text(config.getHeapsDescription()), subcols, cols); in render()
80 ArrayList<DocString> vals = new ArrayList<DocString>(); in render()
87 vals.add(DocString.format("%,14d", size)); in render()
90 vals.add(DocString.format("%,14d", total)); in render()
96 doc.row(vals.toArray(new DocString[0])); in render()
118 vals.add(DocString.format("%,14d", size)); in render()
121 vals.add(DocString.format("%,14d", total)); in render()
125 vals.add(DocString.text("...")); in render()
127 doc.row(vals.toArray(new DocString[0])); in render()
DColumn.java23 public DocString heading;
30 public Column(DocString heading, Align align) { in Column()
39 this(DocString.text(heading), Align.LEFT); in Column()
46 this(DocString.text(heading), align); in Column()
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()
98 public void table(DocString description, List<Column> subcols, List<Column> cols) { in table()
131 public void row(DocString... values) { in row()
159 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()
DSitePrinter.java48 public DocString render(Site element) { in printSite()
49 DocString str = new DocString(); in printSite()
54 DocString.formattedUri("site?stack=%d&depth=%d", in printSite()
56 DocString.text(element.getName())); in printSite()
DStaticHandler.java45 HtmlDoc doc = new HtmlDoc(ps, DocString.text("ahat"), DocString.uri("style.css")); in handle()
46 doc.big(DocString.text("Resource not found.")); in handle()
DBitmapHandler.java56 HtmlDoc doc = new HtmlDoc(ps, DocString.text("ahat"), DocString.uri("style.css")); in handle()
57 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()
DHelpHandler.java39 HtmlDoc doc = new HtmlDoc(ps, DocString.text("ahat"), DocString.uri("style.css")); in handle()
DObjectsHandler.java61 DocString.format("%,d", inst.getSize()), in handle()
62 DocString.text(inst.getHeap().getName()), in handle()
DDominatedList.java73 public DocString render(Instance element) { in getValueConfigs()
DQuery.java101 return DocString.uri(newQuery.toString()); in with()
/art/tools/ahat/test/
DPerformanceTest.java46 HtmlDoc doc = new HtmlDoc(ps, DocString.text("bigArray test"), DocString.uri("style.css")); in bigArray()
48 Query query = new Query(DocString.uri(uri)); in bigArray()