@@ -76,12 +76,12 @@ These two columns tell you different things about how your page is using memory:
7676 represents how much memory the reachable objects on your page are using. If this number is
7777 increasing, either new objects are being created, or the existing objects are growing.
7878
79- ## Visualize memory leaks with Timeline recordings {: #visualize_memory_leaks_with_timeline_recordings }
79+ ## Visualize memory leaks with Performance recordings {: #visualize_memory_leaks_with_timeline_recordings }
8080
81- You can also use the Timeline panel as another starting point in your investigation. The Timeline
81+ You can also use the Performance panel as another starting point in your investigation. The Performance
8282panel helps you visualize a page's memory use over time.
8383
84- 1 . Open the ** Timeline ** panel on DevTools.
84+ 1 . Open the ** Performance ** panel on DevTools.
85852 . Enable the ** Memory** checkbox.
86863 . [ Make a recording] [ 2 ] .
8787
@@ -90,7 +90,7 @@ the **collect garbage** button
9090({% Img src="image/admin/Qkf1EfUFRSoRsCEMVHdY.png", alt="force garbage collection button", width="18", height="20" %})
9191while recording to force garbage collection.
9292
93- To demonstrate Timeline memory recordings, consider the code below:
93+ To demonstrate Performance memory recordings, consider the code below:
9494
9595``` js
9696var x = [];
@@ -159,7 +159,7 @@ Heap snapshots are one way to identify detached nodes. As the name implies, heap
159159how memory is distributed among your page's JS objects and DOM nodes at the point of time of the
160160snapshot.
161161
162- To create a snapshot, open DevTools and go to the ** Profiles ** panel, select the ** Take Heap
162+ To create a snapshot, open DevTools and go to the ** Memory ** panel, select the ** Heap
163163Snapshot** radio button, and then press the ** Take Snapshot** button.
164164
165165{% Img src="image/admin/cZnWVusrPfoLR9R9edO1.png", alt="take heap snapshot", width="800", height="353" %}
@@ -233,11 +233,11 @@ you'd be able to see that it was allocated to the `x` variable in the `Window` s
233233
234234## Investigate memory allocation by function {: #allocation-profile }
235235
236- Use the ** Record Allocation Profiler ** type to view memory allocation by JavaScript function.
236+ Use the ** Allocation Sampling ** type in the ** Memory ** panel to view memory allocation by JavaScript function.
237237
238238{% Img src="image/admin/EiRjVwtHv1eh7idYWz37.png", alt="Record Allocation Profiler", width="800", height="564" %}
239239
240- 1 . Select the ** Record Allocation Profiler ** radio button. If there is a worker on the page, you
240+ 1 . Select the ** Allocation Sampling ** radio button. If there is a worker on the page, you
241241 can select that as the profiling target using the dropdown menu next to the ** Start** button.
2422422 . Press the ** Start** button.
2432433 . Perform the actions on the page which you want to investigate.
0 commit comments