Index: Source/core/inspector/InspectorHeapProfilerAgent.h |
diff --git a/Source/core/inspector/InspectorHeapProfilerAgent.h b/Source/core/inspector/InspectorHeapProfilerAgent.h |
index ad9e214f54546de08e431f8071eefd6c46d0cbba..11292f13135d1641cbb9ef14a67137a524410ab9 100644 |
--- a/Source/core/inspector/InspectorHeapProfilerAgent.h |
+++ b/Source/core/inspector/InspectorHeapProfilerAgent.h |
@@ -37,12 +37,15 @@ |
#include <wtf/Forward.h> |
#include <wtf/HashMap.h> |
#include <wtf/Noncopyable.h> |
+#include <wtf/OwnPtr.h> |
#include <wtf/PassOwnPtr.h> |
#include <wtf/text/WTFString.h> |
namespace WebCore { |
+class HeapObjectsStatsStream; |
class InjectedScriptManager; |
+class HeapStatsUpdateTask; |
yurys
2013/04/25 12:23:15
Wrong order.
loislo
2013/04/25 13:33:56
Done.
|
class ScriptHeapSnapshot; |
class ScriptProfile; |
@@ -60,6 +63,8 @@ public: |
virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::HeapProfiler::ProfileHeader> >&); |
virtual void getHeapSnapshot(ErrorString*, int uid); |
virtual void removeProfile(ErrorString*, int uid); |
+ virtual void startTrackingHeapObjects(ErrorString*); |
+ virtual void stopTrackingHeapObjects(ErrorString*); |
virtual void setFrontend(InspectorFrontend*); |
virtual void clearFrontend(); |
@@ -72,12 +77,18 @@ public: |
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
+ |
private: |
+ friend class HeapStatsUpdateTask; |
yurys
2013/04/25 12:23:15
These two classes should just be nested in Inspect
loislo
2013/04/25 13:33:56
Done.
|
+ friend class HeapStatsStream; |
+ |
InspectorHeapProfilerAgent(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*); |
typedef HashMap<unsigned, RefPtr<ScriptHeapSnapshot> > IdToHeapSnapshotMap; |
void resetFrontendProfiles(); |
+ void requestHeapStatsUpdate(); |
+ void pushHeapStatsUpdate(const uint32_t* const data, const int size); |
PassRefPtr<TypeBuilder::HeapProfiler::ProfileHeader> createSnapshotHeader(const ScriptHeapSnapshot&); |
@@ -85,6 +96,7 @@ private: |
InspectorFrontend::HeapProfiler* m_frontend; |
unsigned m_nextUserInitiatedHeapSnapshotNumber; |
IdToHeapSnapshotMap m_snapshots; |
+ OwnPtr<HeapStatsUpdateTask> m_heapStatsUpdateTask; |
}; |
} // namespace WebCore |