DiagnosticsMemoryProfiler object
Object that provides methods and properties to access memory storage.
Note These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.
Syntax
var oMemoryProfile = DiagnosticResources.memory;
DOM Information
Inheritance Hierarchy
The DiagnosticsMemoryProfiler does not inherit from any class or interface.
Members
The DiagnosticsMemoryProfiler object has these types of members:
- Methods
- Properties
Methods
The DiagnosticsMemoryProfiler object has these methods.
Method | Description |
---|---|
clearWorkerMemoryProfiles | Clears a worker profile. |
getMemoryProfile | Returns a snapshot of the diagnostics engine on the main UI thread. |
getMemoryProfileFromWorkerURN | Returns a worker memory profile for a specific URN. |
triggerGarbageCollection | Starts the JavaScript garbage collector. |
Properties
The DiagnosticsMemoryProfiler object has these properties.
Property | Access type | Description |
---|---|---|
Read-only |
Returns the memoryProfile heap size in bytes. |
|
Read-only |
Returns the process's pointer size. |
|
Read-only |
Gets the processes private bytes metric. |