4 about:memory template page
9 <title>About Memory
</title>
10 <link rel=
"stylesheet" href=
"chrome://resources/css/text_defaults.css">
11 <link rel=
"stylesheet" href=
"chrome://memory-redirect/about_memory.css">
14 table.list#browserComparison tr:not([class*='firstRow'])
> *:nth-child(
1),
15 table.list#browserComparison tr:not([class*='firstRow'])
> *:nth-child(
4),
16 table.list#browserComparison tr.firstRow th:nth-child(
1),
17 table.list#browserComparison tr.firstRow th:nth-child(
2) {
18 border-right:
1px solid #b5c6de;
20 table.list#memoryDetails tr:not([class*='firstRow'])
> *:nth-child(
2),
21 table.list#memoryDetails tr:not([class*='firstRow'])
> *:nth-child(
5),
22 table.list#memoryDetails tr.firstRow th:nth-child(
2),
23 table.list#memoryDetails tr.firstRow th:nth-child(
3) {
24 border-right:
1px solid #b5c6de;
27 <script src=
"chrome://resources/js/load_time_data.js"></script>
28 <script src=
"chrome://memory-redirect/memory.js"></script>
29 <script src=
"chrome://memory-redirect/strings.js"></script>
37 Measuring memory usage in a multi-process browser
47 Summary of memory used by currently active browsers. For browsers
48 which use multiple processes, memory reflects aggregate memory
49 used across all browser processes.
52 For
<span jscontent=
"current_browser_name"></span>, processes used
53 to to display diagnostics information (such as this
54 "about:memory") are excluded.
60 <table class=
"list" id=
"browserComparison">
69 <tr class=
"firstRow doNotFilter">
77 <strong>Memory
</strong>
80 <strong>Private:
</strong>
81 Resident memory size that is not shared with any other
82 process. This is the best indicator of browser memory
86 <strong>Shared:
</strong>
87 Resident memory size that is currently shared with
2 or more
88 processes. Note: For browsers using multiple processes, if we
89 simply added the shared memory of each individual process,
90 this value would be inflated. Therefore, this value is
91 computed as an approximate value for shared memory in each of
92 the browser's processes. Note also that shared memory varies
93 depending on what other processes are running on the system,
94 and may be difficult to measure reproducibly.
97 <strong>Total:
</strong>
98 The sum of the private + shared resident memory sizes.
108 <strong>Virtual memory
</strong>
111 <strong>Private:
</strong>
112 The resident and paged bytes committed for use by only this
116 <strong>Mapped:
</strong>
117 Total bytes allocated by this process that are mapped into the
118 view of a section, backed by either system pagefile or file
119 system. This is primarily memory-mapped files.
125 <tr class=
"secondRow doNotFilter">
145 <tr jsselect=
"browsers">
148 <strong jscontent=
"name"></strong>
149 <span jscontent=
"version"></span>
154 jscontent=
"formatNumber(ws_priv + ws_shareable - ws_shared)">
155 </span><span class=
"k">k
</span>
158 <span class=
"th" jscontent=
"formatNumber(ws_shared / processes)">
159 </span><span class=
"k">k
</span>
163 jscontent=
"formatNumber(ws_priv + ws_shareable - ws_shared +
164 (ws_shared / processes))"></span><span class=
"k">k
</span>
167 <span class=
"th" jscontent=
"formatNumber(comm_priv)"></span>
168 <span class=
"k">k
</span>
171 <span class=
"th" jscontent=
"formatNumber(comm_map)"></span>
172 <span class=
"k">k
</span>
176 <div class=
"otherbrowsers" jsdisplay=
"browsers.length == 1">
177 Note: This page will show memory use for all running browsers,
180 <div class=
"otherbrowsers" jsdisplay=
"browsers.length > 1">
181 Note: Chrome includes memory used by plug-ins, other browsers may not.
191 Details of memory usage for each of
192 <span jscontent=
"current_browser_name"></span>'s processes.
198 <table class=
"list" id=
"memoryDetails">
208 <tr class=
"firstRow doNotFilter">
221 <tr class=
"secondRow doNotFilter">
245 <tr jsselect=
"browzr_data">
247 <span class=
"th" jscontent=
"pid"></span>
255 <span class=
"th" jseval=
"addToSum('tot_ws_priv', $this.ws_priv +
256 $this.ws_shareable - $this.ws_shared)" jscontent=
"ws_priv +
257 ws_shareable - ws_shared"></span><span class=
"k">k
</span>
260 <span class=
"th" jscontent=
"ws_shared"></span>
261 <span class=
"k">k
</span>
264 <span class=
"th" jseval=
"addToSum('tot_ws_tot', $this.ws_priv +
265 $this.ws_shareable)" jscontent=
"ws_priv +
266 ws_shareable"></span><span class=
"k">k
</span>
269 <span class=
"th" jseval=
"addToSum('tot_comm_priv', $this.comm_priv)"
270 jscontent=
"comm_priv"></span><span class=
"k">k
</span>
273 <span class=
"th" jseval=
"addToSum('tot_comm_map', $this.comm_map)"
274 jscontent=
"comm_map"></span><span class=
"k">k
</span>
277 <tr jsselect=
"child_data">
279 <span class=
"th" jscontent=
"pid"></span>
282 <div jscontent=
"child_name"></div>
283 <div jsselect=
"titles">
284 <span jscontent=
"$this"></span><br>
288 <span class=
"th" jseval=
"addToSum('tot_ws_priv', $this.ws_priv +
289 $this.ws_shareable - $this.ws_shared)" jscontent=
"ws_priv +
290 ws_shareable - ws_shared"></span><span class=
"k">k
</span>
293 <span class=
"th" jscontent=
"ws_shared"></span><span
297 <span class=
"th" jseval=
"addToSum('tot_ws_tot', $this.ws_priv +
298 $this.ws_shareable)" jscontent=
"ws_priv +
299 ws_shareable"></span><span class=
"k">k
</span>
302 <span class=
"th" jseval=
"addToSum('tot_comm_priv', $this.comm_priv)"
303 jscontent=
"comm_priv"></span><span class=
"k">k
</span>
306 <span class=
"th" jseval=
"addToSum('tot_comm_map', $this.comm_map)"
307 jscontent=
"comm_map"></span><span class=
"k">k
</span>
310 <tr class=
"total doNotFilter">
317 <span class=
"th" id=
"tot_ws_priv">0</span><span class=
"k">k
</span>
322 <span class=
"th" id=
"tot_ws_tot">0</span><span class=
"k">k
</span>
325 <span class=
"th" id=
"tot_comm_priv">0</span><span class=
"k">k
</span>
331 This is an approximation. Conceptually, this is the total
332 amount of in-memory pages for the entire logical
333 <span jscontent=
"current_browser_name"></span> application,
334 without double counting shared pages (e.g. mapped DLLs,
335 SharedMemory bitmaps, etc.) across the browser and renderers.
339 <span class=
"th" id=
"tot_comm_map">0</span><span class=
"k">k
</span>
343 <tr class=
"noResults">
350 <script src=
"chrome://resources/js/jstemplate_compiled.js"></script>