1a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)<!doctype html>
2a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)<!--
3a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  -- Copyright 2014 The Chromium Authors. All rights reserved.
4a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  -- Use of this source code is governed by a BSD-style license that can be
5a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  -- found in the LICENSE file.
6a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  -->
7a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)<html lang="en-us">
8a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)<head>
9a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
10a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <title>Memory Inspector</title>
11a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <link href='//fonts.googleapis.com/css?family=Coda' rel='stylesheet' type='text/css'>
12a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/flick/jquery-ui.css" rel="stylesheet">
13a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <link href="/css/mmap.css" rel="stylesheet" type="text/css">
140529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  <link href="/css/nheap.css" rel="stylesheet" type="text/css">
15a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <link href="/css/processes.css" rel="stylesheet" type="text/css">
16effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch  <link href="/css/profiler.css" rel="stylesheet" type="text/css">
17a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <link href="/css/rootUi.css" rel="stylesheet" type="text/css">
18a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <link href="/css/settings.css" rel="stylesheet" type="text/css">
19cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  <link href="/css/storage.css" rel="stylesheet" type="text/css">
20a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
21a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
22a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="//www.google.com/jsapi"></script>
23a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script type="text/javascript">
24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    google.load('visualization', '1',
25a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)                { packages: ['corechart', 'table', 'orgchart', 'treemap'] });
26a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  </script>
27a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/devices.js"></script>
28a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/mmap.js"></script>
290529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  <script src="/js/nheap.js"></script>
30a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/processes.js"></script>
31effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch  <script src="/js/profiler.js"></script>
32a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/rootUi.js"></script>
33a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/settings.js"></script>
34effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch  <script src="/js/storage.js"></script>
35a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/timers.js"></script>
36a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <script src="/js/webservice.js"></script>
37a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)</head>
38a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)<body>
39a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <div id="wrapper">
40a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    <h1>Memory Inspector</h1>
41a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    <div id="tabs">
42a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      <ul>
43a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <li><a href="#tabs-ps">Processes</a></li>
44a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <li><a href="#tabs-prof">Profiler</a></li>
45a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <li><a href="#tabs-mm">Memory maps table</a></li>
460529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch        <li><a href="#tabs-nheap">Native S.Traces</a></li>
47a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <li><a href="#tabs-storage">Archived traces</a></li>
48a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <li><a href="#tabs-settings">Settings</a></li>
49a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      </ul>
50a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
51a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      <div id="tabs-ps">
52a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <div>
53a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          Device:
54a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <select id="devices"></select>
55a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <input type="button" id="refresh-devices" value="&#10226;">
56a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        </div>
57a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <div id="device_tabs">
58a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <ul>
59a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <li><a href="#device_tabs-osstats">Device stats</a></li>
60a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <li><a href="#device_tabs-procstats">Selected process stats</a></li>
61a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          </ul>
62a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <div id="device_tabs-osstats">
63a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <div id="os-mem_chart"></div>
64a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <div id="os-cpu_chart"></div>
65a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          </div>
66a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <div id="device_tabs-procstats">
67a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <div id="proc-cpu_chart"></div>
68a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <div id="proc-mem_chart"></div>
69a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          </div>
70a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        </div>
71a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
72a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <div id="ps-table-wrapper">
73a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <div id="ps-toolbar" class="ui-widget-header ui-corner-all">
74effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <button id="ps-quick_snapshot">Quick snapshot</button>
75a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <button id="ps-dump_mmaps">Dump mmaps</button>
76effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <button id="ps-full_profile">Full profile</button>
77a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <input type="checkbox" id="ps-show_all">
78a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <label for="ps-show_all">Show all processes</label>
79a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          </div>
80a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <div id="ps-table"></div>
81a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        </div>
82effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
83effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        <div id="ps-tracer-dialog" title="Trace process">
84effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <div>
85effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <label for="ps-tracer-process">Process</label>
86effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <input type="text" id="ps-tracer-process" readonly class="text ui-widget-content">
87effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          </div>
88effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <div>
89effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <label for="ps-tracer-period">Period [s.]</label>
90effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <input type="text" id="ps-tracer-period" value="20">
91effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          </div>
92effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <div>
93effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <label for="ps-tracer-snapshots">Num snapshots</label>
94effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <input type="text" id="ps-tracer-snapshots" value="1">
95effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          </div>
960529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch          <div>
970529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch            <input type="checkbox" id="ps-tracer-bt" class="ui-widget-content">
980529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch            <label for="ps-tracer-bt">Detailed (w/ backtraces)</label>
990529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch          </div>
100effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        </div>
101a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      </div>
102a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
103a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      <div id="tabs-prof">
104effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        <header id="prof-options">
105effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <span>
106effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            Metric:
107effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <select id="prof-metric"></select>
108effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          </span>
109effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <span>
110effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            Snapshot:
111effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            <div id="prof-time"></div>
112effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch            T = <span id="prof-time_label">0</span> s.
113effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          </span>
114cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)          <span>
115cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)            Rules:
116cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)            <label id="prof-ruleset"></label>
117cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)          </span>
118effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        </header>
119effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        <div id="prof-tree_chart"></div>
120effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        <div id="prof-time_chart"></div>
121a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      </div>
122a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
123a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      <div id="tabs-mm">
124a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <header>
125a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <table id="mm-tools">
126a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <tr>
127a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th colspan="3">
128a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)                Data filters
129a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)                <input type="button" id="mm-filter-clear" value="&#10226;">
130a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              </th>
131a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            </tr>
132a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <tr>
133a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Filter</th>
134a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td>Prot: <input type="text" id="mm-filter-prot"></td>
135a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td>File: <input type="text" id="mm-filter-file"></td>
136a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            </tr>
137a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <tr>
138a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Lookup</th>
139a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td>Addr: <input type="text" id="mm-lookup-addr"></td>
140a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td>Offset: <input type="text" id="mm-lookup-offset" readonly=""></td>
141a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            </tr>
142a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          </table>
143a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          <table id="mm-stats">
144a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <tr>
145a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Totals</th>
146a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Priv Dirty [KB]</th>
147a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Priv Clean [KB]</th>
148a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Shared Dirty [KB]</th>
149a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Shared Clean [KB]</th>
150a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            </tr>
151a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <tr>
152a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Shown</th>
153a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-totals-priv-dirty">0</span></td>
154a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-totals-priv-clean">0</span></td>
155a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-totals-shared-dirty">0</span></td>
156a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-totals-shared-clean">0</span></td>
157a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            </tr>
158a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            <tr>
159a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <th>Selected</th>
160a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-selected-priv-dirty">0</span></td>
161a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-selected-priv-clean">0</span></td>
162a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-selected-shared-dirty">0</span></td>
163a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)              <td><span id="mm-selected-shared-clean">0</span></td>
164a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)            </tr>
165a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)          </table>
166a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        </header>
167a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <div id="mm-table"></div>
168a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      </div>
169a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
1700529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch      <div id="tabs-nheap">
1710529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch        <div id="nheap-toolbar" class="ui-widget-header ui-corner-all">
1721320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <label>Total (allocated): </label>
1731320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <input type="text" id="nheap-total-allocated" values="0 KB" readonly>
1741320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <label>Total (resident): </label>
1751320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <input type="text" id="nheap-total-resident" values="0 KB" readonly>
1761320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <label>Selected (allocated): </label>
1771320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <input type="text" id="nheap-selected-allocated" values="0 KB" readonly>
1781320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <label>Selected (resident): </label>
1791320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci          <input type="text" id="nheap-selected-resident" values="0 KB" readonly>
1800529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch          <label>Filter: </label>
1810529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch          <input type="text" id="nheap-filter">
1820529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch        </div>
1830529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch        <div id="nheap-table"></div>
1840529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch      </div>
1850529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
186a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      <div id="tabs-storage">
187effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        <div id="storage-toolbar" class="ui-widget-header ui-corner-all">
188effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <label>Group:</label>
189cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)          <button id="storage-profile">Profile</button>
190cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)          <ul id="storage-profile-menu"></ul>
191effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <label>Single snapshot:</label>
192effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch          <button id="storage-dump-mmaps">Show memory maps</button>
1930529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch          <button id="storage-dump-nheap">Show native heap</button>
194effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        </div>
195effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch        <div id="storage-table"></div>
196a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      </div>
197a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
198a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      <div id="tabs-settings">
199a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <div id="settings-container">
200a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        </div>
201a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)        <button id="settings-store">Save settings</button>
202a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      </div>
203a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    </div>
204a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  </div>
205a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
206a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <div id="status_bar">
207a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    <div id="status_messages"></div>
208a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    <div id="progress_bar"><div id="progress_bar-label">Progress...</div></div>
209a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  </div>
210a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
2111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  <div id="android_provision_dialog" title="Warning: this might brick your device">
2121320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    <p>
2131320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      <span class="ui-icon ui-icon-alert" style="float:left;"></span>
2141320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      Full heap profiling requires some modifications to the Android system
2151320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      (preload a library into the Android Zygote).
2161320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      <br>
2171320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      This feature has currently been tested on Nexus devices running Android K
2181320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      and L. On some other untested devices / Android releases this might end up
2191320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      bricking the device.
2201320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      <br>
2211320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      <b>Use this feature only on development rooted phones.</b>
2221320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      <br><br>
2231320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      If something goes wrong these are the steps to restore your device:
2241320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      <code>
2251320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci        $ adb root && adb wait-for-device && adb remount
2261320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci        $ adb shell mv /system/bin/app_process.real /system/bin/app_process
2271320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci        $ adb reboot
2281320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci      </code>
2291320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    </p>
2301320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  </div>
2311320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
232a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  <div id="js_loading_banner">
233a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  Loading JavaScript content. If you see this message something has probably gone wrong. Check JS console.
234a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  </div>
235a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
236a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)</body>
237a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)</html>