OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 virtual void setFrontend(InspectorFrontend*); | 64 virtual void setFrontend(InspectorFrontend*); |
65 virtual void clearFrontend(); | 65 virtual void clearFrontend(); |
66 virtual void restore(); | 66 virtual void restore(); |
67 | 67 |
68 virtual void takeHeapSnapshot(ErrorString*, const bool* reportProgress); | 68 virtual void takeHeapSnapshot(ErrorString*, const bool* reportProgress); |
69 | 69 |
70 virtual void getObjectByHeapObjectId(ErrorString*, const String& heapSnapsho
tObjectId, const String* objectGroup, RefPtr<TypeBuilder::Runtime::RemoteObject>
& result); | 70 virtual void getObjectByHeapObjectId(ErrorString*, const String& heapSnapsho
tObjectId, const String* objectGroup, RefPtr<TypeBuilder::Runtime::RemoteObject>
& result); |
71 virtual void getHeapObjectId(ErrorString*, const String& objectId, String* h
eapSnapshotObjectId); | 71 virtual void getHeapObjectId(ErrorString*, const String& objectId, String* h
eapSnapshotObjectId); |
72 | 72 |
73 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
74 | |
75 private: | 73 private: |
76 InspectorHeapProfilerAgent(InstrumentingAgents*, InspectorCompositeState*, I
njectedScriptManager*); | 74 InspectorHeapProfilerAgent(InstrumentingAgents*, InspectorCompositeState*, I
njectedScriptManager*); |
77 | 75 |
78 typedef HashMap<unsigned, RefPtr<ScriptHeapSnapshot> > IdToHeapSnapshotMap; | 76 typedef HashMap<unsigned, RefPtr<ScriptHeapSnapshot> > IdToHeapSnapshotMap; |
79 | 77 |
80 void resetFrontendProfiles(); | 78 void resetFrontendProfiles(); |
81 | 79 |
82 PassRefPtr<TypeBuilder::HeapProfiler::ProfileHeader> createSnapshotHeader(co
nst ScriptHeapSnapshot&); | 80 PassRefPtr<TypeBuilder::HeapProfiler::ProfileHeader> createSnapshotHeader(co
nst ScriptHeapSnapshot&); |
83 | 81 |
84 InjectedScriptManager* m_injectedScriptManager; | 82 InjectedScriptManager* m_injectedScriptManager; |
85 InspectorFrontend::HeapProfiler* m_frontend; | 83 InspectorFrontend::HeapProfiler* m_frontend; |
86 unsigned m_nextUserInitiatedHeapSnapshotNumber; | 84 unsigned m_nextUserInitiatedHeapSnapshotNumber; |
87 IdToHeapSnapshotMap m_snapshots; | 85 IdToHeapSnapshotMap m_snapshots; |
88 }; | 86 }; |
89 | 87 |
90 } // namespace WebCore | 88 } // namespace WebCore |
91 | 89 |
92 | 90 |
93 #endif // !defined(InspectorHeapProfilerAgent_h) | 91 #endif // !defined(InspectorHeapProfilerAgent_h) |
OLD | NEW |