Open In App

Memory Tool in Microsoft Edge Browser

The Memory Tool in Edge allows you to capture the memory heap and provides various views to view that information. The tool provides various profiles for capturing web page memory information. The information mainly consists of retained size and shallow size, which provide information about the object’s actual size and the size memory after garbage collection.

Benefits of Memory Tools

The various benefits of the memory tool are:

How do I open the Memory Tool in Edge?

The tool is present as a tab in DevTools. The DevTools can be opened in Edge using the shortcut F12 or “Ctrl+Shift+I.” Alternatively, you can right-click on the webpage and then select Inspect to open DevTools. In DevTools, there are multiple ways to open the tool, which are:



Opening Memory Tool in multiple ways

UI of Memory Tool

The Memory Tool UI can be divided into two sections: Profiling Sidebar and Profiling Details.

UI of Memory Tool

Profiling Sidebar

In the sidebar, you will find various options and snapshots list.

Profiling Sidebar

Profiling Details

This section of the Memory Tool displays details of the selected snapshot profile present in the profiling sidebar. You may encounter some columns that are shallow size and retained size. The shallow size is the object’s actual size in memory and the retained size is the memory freed after garbage collection.

Profiles Details

If you click Profiles in the sidebar, you get this pane. Here you can select the various snapshot profiles and JS instances. You have a start/stop button to start and stop capturing and a load button to import snapshots with an.heaptimeline extension.

Profile pane Details

Various views for the snapshot:

Summary view

Comparison view

Containment view

Containment diff view

Statistics view

Allocation view

Chart view

Heavy view

Tree view

Object table

In the heap snapshot and Allocation Timelines Snapshot you can select an object to get more information about it in a table. The table is presented below with various views in the Profile details section. At the top of this table, you will find a filter option Retainers which is under to hides internal and cycled node objects.

Object table

Showing usage of Memory Tool

Let’s use the Memory Tool to inspect the memory usage of the GFG site.

Step 1: Using Edge visit the GFG site and then locate the Memory tool in DevTools.

Step 2: Use the Memory tool to take snapshots and inspect the memory usage of JS code in the site.

Using the Memory Tool on the GFG site

The developers need to design sites that have memory usage that a normal user system can handle. The Edge provides the memory tool to inspect and debug memory-related problems in the web page’s JS code.


Article Tags :