OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool profilerEnabled(); | 106 bool profilerEnabled(); |
107 void setProfilerEnabled(bool); | 107 void setProfilerEnabled(bool); |
108 | 108 |
109 void resume(); | 109 void resume(); |
110 | 110 |
111 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize
, int maximumSingleResourceContentSize); | 111 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize
, int maximumSingleResourceContentSize); |
112 | 112 |
113 InspectorClient* inspectorClient() const { return m_inspectorClient; } | 113 InspectorClient* inspectorClient() const { return m_inspectorClient; } |
114 InspectorPageAgent* pageAgent() const { return m_pageAgent; } | 114 InspectorPageAgent* pageAgent() const { return m_pageAgent; } |
115 | 115 |
116 void reportMemoryUsage(MemoryObjectInfo*) const; | |
117 | |
118 void willProcessTask(); | 116 void willProcessTask(); |
119 void didProcessTask(); | 117 void didProcessTask(); |
120 | 118 |
121 void didBeginFrame(); | 119 void didBeginFrame(); |
122 void didCancelFrame(); | 120 void didCancelFrame(); |
123 void willComposite(); | 121 void willComposite(); |
124 void didComposite(); | 122 void didComposite(); |
125 | 123 |
126 HashMap<String, size_t> processMemoryDistribution() const; | |
127 | |
128 private: | 124 private: |
129 InspectorController(Page*, InspectorClient*); | 125 InspectorController(Page*, InspectorClient*); |
130 | 126 |
131 friend class PostWorkerNotificationToFrontendTask; | 127 friend class PostWorkerNotificationToFrontendTask; |
132 friend InstrumentingAgents* instrumentationForPage(Page*); | 128 friend InstrumentingAgents* instrumentationForPage(Page*); |
133 | 129 |
134 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 130 RefPtr<InstrumentingAgents> m_instrumentingAgents; |
135 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 131 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
136 OwnPtr<InspectorCompositeState> m_state; | 132 OwnPtr<InspectorCompositeState> m_state; |
137 OwnPtr<InspectorOverlay> m_overlay; | 133 OwnPtr<InspectorOverlay> m_overlay; |
(...skipping 13 matching lines...) Expand all Loading... |
151 Page* m_page; | 147 Page* m_page; |
152 InspectorClient* m_inspectorClient; | 148 InspectorClient* m_inspectorClient; |
153 InspectorAgentRegistry m_agents; | 149 InspectorAgentRegistry m_agents; |
154 bool m_isUnderTest; | 150 bool m_isUnderTest; |
155 }; | 151 }; |
156 | 152 |
157 } | 153 } |
158 | 154 |
159 | 155 |
160 #endif // !defined(InspectorController_h) | 156 #endif // !defined(InspectorController_h) |
OLD | NEW |