OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |