aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/tools/memory/index.html
blob: 9dce9be076cf65619d9666bd40671b5625c4ac68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: Memory
slug: Tools/Memory
translation_of: Tools/Memory
---
<div>{{ToolsSidebar}}</div><p>A ferramenta de memória permite que você tire um snapshot da aba atual de memória <a class="external external-icon" href="http://en.wikipedia.org/wiki/Memory_management#HEAP" title="heap">heap</a>. Então fornece um número de visualizações do heap que lhe mostrar quais objetis account for memory usage and exactly where in your code you are allocating memory.</p>

<p>{{EmbedYouTube("DJLoq5E5ww0")}}</p>

<hr>
<h3 id="Básico">Básico</h3>

<div class="twocolumns">
<ul>
 <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Opening_the_Memory_tool">Abrindo a ferramenta de memória</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">Comparando dois snapshots</a></li>
 <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Clearing_a_snapshot">Deletando snapshots</a></li>
 <li><a href="/en-US/docs/Tools/Memory/Basic_operations#Saving_and_loading_snapshots">Salvando e carregando 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="Analisando_snapshots">Analisando snapshots</h3>

<div class="geckoVersionNote">
<p>A visualização do mapa de arvore é nova no Firefox 48, and the Dominators view is new in Firefox 46.</p>
</div>

<p>Uma vez que você tirou um snapshot, existem três principais visualizações que a ferramenta de Memória fornece:</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>Exemplos usados na documentação da Memory took.</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>