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>
35 Measuring memory usage in a multi-process browser
45 Summary of memory used by currently active browsers. For browsers
46 which use multiple processes, memory reflects aggregate memory
47 used across all browser processes.
50 For
<span jscontent=
"current_browser_name"></span>, processes used
51 to to display diagnostics information (such as this
52 "about:memory") are excluded.
58 <table class=
"list" id=
"browserComparison">
67 <tr class=
"firstRow doNotFilter">
75 <strong>Memory
</strong>
78 <strong>Private:
</strong>
79 Resident memory size that is not shared with any other
80 process. This is the best indicator of browser memory
84 <strong>Shared:
</strong>
85 Resident memory size that is currently shared with
2 or more
86 processes. Note: For browsers using multiple processes, if we
87 simply added the shared memory of each individual process,
88 this value would be inflated. Therefore, this value is
89 computed as an approximate value for shared memory in each of
90 the browser's processes. Note also that shared memory varies
91 depending on what other processes are running on the system,
92 and may be difficult to measure reproducibly.
95 <strong>Total:
</strong>
96 The sum of the private + shared resident memory sizes.
106 <strong>Virtual memory
</strong>
109 <strong>Private:
</strong>
110 The resident and paged bytes committed for use by only this
114 <strong>Mapped:
</strong>
115 Total bytes allocated by this process that are mapped into the
116 view of a section, backed by either system pagefile or file
117 system. This is primarily memory-mapped files.
123 <tr class=
"secondRow doNotFilter">
143 <tr jsselect=
"browsers">
146 <strong jscontent=
"name"></strong>
147 <span jscontent=
"version"></span>
152 jscontent=
"formatNumber(ws_priv + ws_shareable - ws_shared)">
153 </span><span class=
"k">k
</span>
156 <span class=
"th" jscontent=
"formatNumber(ws_shared / processes)">
157 </span><span class=
"k">k
</span>
161 jscontent=
"formatNumber(ws_priv + ws_shareable - ws_shared +
162 (ws_shared / processes))"></span><span class=
"k">k
</span>
165 <span class=
"th" jscontent=
"formatNumber(comm_priv)"></span>
166 <span class=
"k">k
</span>
169 <span class=
"th" jscontent=
"formatNumber(comm_map)"></span>
170 <span class=
"k">k
</span>
174 <div class=
"otherbrowsers" jsdisplay=
"browsers.length == 1">
175 Note: This page will show memory use for all running browsers,
178 <div class=
"otherbrowsers" jsdisplay=
"browsers.length > 1">
179 Note: Chrome includes memory used by plugins, other browsers may not.
189 Details of memory usage for each of
190 <span jscontent=
"current_browser_name"></span>'s processes.
196 <table class=
"list" id=
"memoryDetails">
206 <tr class=
"firstRow doNotFilter">
219 <tr class=
"secondRow doNotFilter">
243 <tr jsselect=
"browzr_data">
245 <span class=
"th" jscontent=
"pid"></span>
253 <span class=
"th" jseval=
"addToSum('tot_ws_priv', $this.ws_priv +
254 $this.ws_shareable - $this.ws_shared)" jscontent=
"ws_priv +
255 ws_shareable - ws_shared"></span><span class=
"k">k
</span>
258 <span class=
"th" jscontent=
"ws_shared"></span>
259 <span class=
"k">k
</span>
262 <span class=
"th" jseval=
"addToSum('tot_ws_tot', $this.ws_priv +
263 $this.ws_shareable)" jscontent=
"ws_priv +
264 ws_shareable"></span><span class=
"k">k
</span>
267 <span class=
"th" jseval=
"addToSum('tot_comm_priv', $this.comm_priv)"
268 jscontent=
"comm_priv"></span><span class=
"k">k
</span>
271 <span class=
"th" jseval=
"addToSum('tot_comm_map', $this.comm_map)"
272 jscontent=
"comm_map"></span><span class=
"k">k
</span>
275 <tr jsselect=
"child_data">
277 <span class=
"th" jscontent=
"pid"></span>
280 <div jscontent=
"child_name"></div>
281 <div jsselect=
"titles">
282 <span jscontent=
"$this"></span><br>
286 <span class=
"th" jseval=
"addToSum('tot_ws_priv', $this.ws_priv +
287 $this.ws_shareable - $this.ws_shared)" jscontent=
"ws_priv +
288 ws_shareable - ws_shared"></span><span class=
"k">k
</span>
291 <span class=
"th" jscontent=
"ws_shared"></span><span
295 <span class=
"th" jseval=
"addToSum('tot_ws_tot', $this.ws_priv +
296 $this.ws_shareable)" jscontent=
"ws_priv +
297 ws_shareable"></span><span class=
"k">k
</span>
300 <span class=
"th" jseval=
"addToSum('tot_comm_priv', $this.comm_priv)"
301 jscontent=
"comm_priv"></span><span class=
"k">k
</span>
304 <span class=
"th" jseval=
"addToSum('tot_comm_map', $this.comm_map)"
305 jscontent=
"comm_map"></span><span class=
"k">k
</span>
308 <tr class=
"total doNotFilter">
315 <span class=
"th" id=
"tot_ws_priv">0</span><span class=
"k">k
</span>
320 <span class=
"th" id=
"tot_ws_tot">0</span><span class=
"k">k
</span>
323 <span class=
"th" id=
"tot_comm_priv">0</span><span class=
"k">k
</span>
329 This is an approximation. Conceptually, this is the total
330 amount of in-memory pages for the entire logical
331 <span jscontent=
"current_browser_name"></span> application,
332 without double counting shared pages (e.g. mapped DLLs,
333 SharedMemory bitmaps, etc.) across the browser and renderers.
337 <span class=
"th" id=
"tot_comm_map">0</span><span class=
"k">k
</span>
341 <tr class=
"noResults">
348 <script src=
"chrome://resources/js/jstemplate_compiled.js"></script>