Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: Source/core/inspector/InspectorProfilerAgent.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::Profiler::ProfileHeader> >&); 78 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::Profiler::ProfileHeader> >&);
79 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<TypeBuilder::Profil er::CPUProfile>&); 79 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<TypeBuilder::Profil er::CPUProfile>&);
80 virtual void removeProfile(ErrorString*, const String& type, int uid); 80 virtual void removeProfile(ErrorString*, const String& type, int uid);
81 81
82 virtual void setFrontend(InspectorFrontend*); 82 virtual void setFrontend(InspectorFrontend*);
83 virtual void clearFrontend(); 83 virtual void clearFrontend();
84 virtual void restore(); 84 virtual void restore();
85 85
86 void toggleRecordButton(bool isProfiling); 86 void toggleRecordButton(bool isProfiling);
87 87
88 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
89
90 void willProcessTask(); 88 void willProcessTask();
91 void didProcessTask(); 89 void didProcessTask();
92 90
93 protected: 91 protected:
94 InspectorProfilerAgent(InstrumentingAgents*, InspectorConsoleAgent*, Inspect orCompositeState*, InjectedScriptManager*); 92 InspectorProfilerAgent(InstrumentingAgents*, InspectorConsoleAgent*, Inspect orCompositeState*, InjectedScriptManager*);
95 virtual void startProfiling(const String& title) = 0; 93 virtual void startProfiling(const String& title) = 0;
96 virtual PassRefPtr<ScriptProfile> stopProfiling(const String& title) = 0; 94 virtual PassRefPtr<ScriptProfile> stopProfiling(const String& title) = 0;
97 95
98 private: 96 private:
99 typedef HashMap<unsigned int, RefPtr<ScriptProfile> > ProfilesMap; 97 typedef HashMap<unsigned int, RefPtr<ScriptProfile> > ProfilesMap;
(...skipping 15 matching lines...) Expand all
115 113
116 typedef HashMap<String, double> ProfileNameIdleTimeMap; 114 typedef HashMap<String, double> ProfileNameIdleTimeMap;
117 ProfileNameIdleTimeMap* m_profileNameIdleTimeMap; 115 ProfileNameIdleTimeMap* m_profileNameIdleTimeMap;
118 double m_previousTaskEndTime; 116 double m_previousTaskEndTime;
119 }; 117 };
120 118
121 } // namespace WebCore 119 } // namespace WebCore
122 120
123 121
124 #endif // !defined(InspectorProfilerAgent_h) 122 #endif // !defined(InspectorProfilerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/core/inspector/InspectorProfilerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698