namespace WebCore {
class InspectorArray;
-class InspectorController;
+class InspectorAgent;
class InspectorFrontend;
class InspectorObject;
class ScriptHeapSnapshot;
class InspectorProfilerAgent {
WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED;
public:
- static PassOwnPtr<InspectorProfilerAgent> create(InspectorController*);
+ static PassOwnPtr<InspectorProfilerAgent> create(InspectorAgent*);
virtual ~InspectorProfilerAgent();
void addProfile(PassRefPtr<ScriptProfile> prpProfile, unsigned lineNumber, const String& sourceURL);
void setFrontend(InspectorFrontend* frontend) { m_frontend = frontend; }
void startUserInitiatedProfiling();
void stopUserInitiatedProfiling(bool ignoreProfile = false);
- void takeHeapSnapshot();
+ void takeHeapSnapshot(bool detailed);
void toggleRecordButton(bool isProfiling);
private:
typedef HashMap<unsigned int, RefPtr<ScriptProfile> > ProfilesMap;
typedef HashMap<unsigned int, RefPtr<ScriptHeapSnapshot> > HeapSnapshotsMap;
- InspectorProfilerAgent(InspectorController*);
+ InspectorProfilerAgent(InspectorAgent*);
PassRefPtr<InspectorObject> createProfileHeader(const ScriptProfile& profile);
PassRefPtr<InspectorObject> createSnapshotHeader(const ScriptHeapSnapshot& snapshot);
- InspectorController* m_inspectorController;
+ InspectorAgent* m_inspectorAgent;
InspectorFrontend* m_frontend;
bool m_enabled;
bool m_recordingUserInitiatedProfile;