You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2020. It is now read-only.
in-depth allocation tracker
There are three new commands are added by analogy with Chrome DevTools
allocation tracker. Start/Stop and Event which is sent by timer.
Command stopTrackingHeapXDK accepts three parameters: stack depth for unwinding,
Sample After Value - period of timer and a flag to collect retention
information or not. Event sends to the host currently collected data about
symbols/callstack/objects. Command stopTrackingHeapXDK returns the final
info witch is similar to Event passed format with one more parameter: duration
of the collection.
Basing on this info consumer can build allocation call tree for any period of
time, annotate source by self and total allocation mertics and annotate
allocation call tree by the objects, which retain other objects in the memory
Copy file name to clipboardexpand all lines: Source/core/inspector/InspectorHeapProfilerAgent.cpp
+127
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,20 @@ class InspectorHeapProfilerAgent::HeapStatsUpdateTask final : public NoBaseWillB
61
61
Timer<HeapStatsUpdateTask> m_timer;
62
62
};
63
63
64
+
65
+
classInspectorHeapProfilerAgent::HeapXDKUpdateTask final : public NoBaseWillBeGarbageCollectedFinalized<InspectorHeapProfilerAgent::HeapXDKUpdateTask> {
{ "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment."}
0 commit comments