aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/tools/memory
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 14:50:24 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 14:50:24 +0100
commit2c2df5ea01eb5cd8b9ea226b2869337e59c5fe3e (patch)
tree86ab4534d10092b293d4b7ab169fe1a8a2421bfa /files/pt-pt/tools/memory
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-2c2df5ea01eb5cd8b9ea226b2869337e59c5fe3e.tar.gz
translated-content-2c2df5ea01eb5cd8b9ea226b2869337e59c5fe3e.tar.bz2
translated-content-2c2df5ea01eb5cd8b9ea226b2869337e59c5fe3e.zip
unslug pt-pt: move
Diffstat (limited to 'files/pt-pt/tools/memory')
-rw-r--r--files/pt-pt/tools/memory/index.html65
1 files changed, 65 insertions, 0 deletions
diff --git a/files/pt-pt/tools/memory/index.html b/files/pt-pt/tools/memory/index.html
new file mode 100644
index 0000000000..b331a5b5b9
--- /dev/null
+++ b/files/pt-pt/tools/memory/index.html
@@ -0,0 +1,65 @@
+---
+title: Memória
+slug: Tools/Memoria
+tags:
+ - Ferramentas
+ - Ferramentas de Programador
+ - Firefox
+ - Mozilla
+translation_of: Tools/Memory
+---
+<div>{{ToolsSidebar}}</div><p>The Memory tool lets you take a snapshot of the current tab's memory <a class="external external-icon" href="http://en.wikipedia.org/wiki/Memory_management#HEAP" title="heap">heap</a>. It then provides a number of views of the heap that can show you which objects account for memory usage and exactly where in your code you are allocating memory.</p>
+
+<p>{{EmbedYouTube("DJLoq5E5ww0")}}</p>
+
+<hr>
+<h3 id="O_básico">O básico</h3>
+
+<div class="twocolumns">
+<ul>
+ <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Opening_the_Memory_tool">Opening the memory tool</a></li>
+ <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Taking_a_heap_snapshot">Taking a heap snapshot</a></li>
+ <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Comparing_snapshots">Comparing two snapshots</a></li>
+ <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Clearing_a_snapshot">Deleting snapshots</a></li>
+ <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Saving_and_loading_snapshots">Saving and loading snapshots</a></li>
+ <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Recording_call_stacks">Recording call stacks</a></li>
+</ul>
+</div>
+
+<hr>
+<h3 id="Analisar_capturas_de_ecrã">Analisar capturas de ecrã</h3>
+
+<div class="geckoVersionNote">
+<p>The Tree map view is new in Firefox 48, and the Dominators view is new in FIrefox 46.</p>
+</div>
+
+<p>Once you've taken a snapshot, there are three main views the Memory tool provides:</p>
+
+<ul>
+ <li><a href="/en-US/docs/Tools/Memory/Tree_Map_view">the Tree map view</a> shows memory usage as a <a href="https://en.wikipedia.org/wiki/Treemapping">treemap</a>.</li>
+ <li><a href="/en-US/docs/Tools/Memory/Aggregate_view">the Aggregate view</a> shows memory usage as a table of allocated types.</li>
+ <li><a href="/en-US/docs/Tools/Memory/Dominators_view">the Dominators view</a> shows the "retained size" of objects: that is, the size of objects plus the size of other objects that they keep alive through references.</li>
+</ul>
+
+<p>If you've opted to record allocation stacks for the snapshot, the Aggregate and Dominators views can show you exactly where in your code allocations are happening.</p>
+
+<hr>
+<h3 id="Conceitos">Conceitos</h3>
+
+<div class="twocolumns">
+<ul>
+ <li><a href="/en-US/docs/Tools/Memory/Dominators">Dominators</a></li>
+</ul>
+</div>
+
+<hr>
+<h3 id="Páginas_de_exemplo">Páginas de exemplo</h3>
+
+<p>Examples used in the Memory tool documentation.</p>
+
+<div class="twocolumns">
+<ul>
+ <li><a href="/en-US/docs/Tools/Memory/Monster_example">Monster example</a></li>
+ <li><a href="/en-US/docs/Tools/Memory/DOM_allocation_example">DOM allocation example</a></li>
+</ul>
+</div>