OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SKDEBUGGERUI_H | 9 #ifndef SKDEBUGGERUI_H |
10 #define SKDEBUGGERUI_H | 10 #define SKDEBUGGERUI_H |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 signals: | 71 signals: |
72 void commandChanged(int command); | 72 void commandChanged(int command); |
73 | 73 |
74 private slots: | 74 private slots: |
75 /** | 75 /** |
76 Toggles breakpoint view in the list widget. | 76 Toggles breakpoint view in the list widget. |
77 */ | 77 */ |
78 void actionBreakpoints(); | 78 void actionBreakpoints(); |
79 | 79 |
80 /** | 80 /** |
81 Profile the commands | |
82 */ | |
83 void actionProfile(); | |
84 | |
85 /** | |
86 Cancels the command filter in the list widget. | 81 Cancels the command filter in the list widget. |
87 */ | 82 */ |
88 void actionCancel(); | 83 void actionCancel(); |
89 | 84 |
90 /** | 85 /** |
91 Clears the breakpoint state off of all commands marked as breakpoints. | 86 Clears the breakpoint state off of all commands marked as breakpoints. |
92 */ | 87 */ |
93 void actionClearBreakpoints(); | 88 void actionClearBreakpoints(); |
94 | 89 |
95 /** | 90 /** |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 void updateHit(int newHit); | 226 void updateHit(int newHit); |
232 | 227 |
233 void updateImage(); | 228 void updateImage(); |
234 private: | 229 private: |
235 QSplitter fCentralSplitter; | 230 QSplitter fCentralSplitter; |
236 QStatusBar fStatusBar; | 231 QStatusBar fStatusBar; |
237 QToolBar fToolBar; | 232 QToolBar fToolBar; |
238 | 233 |
239 QAction fActionOpen; | 234 QAction fActionOpen; |
240 QAction fActionBreakpoint; | 235 QAction fActionBreakpoint; |
241 QAction fActionProfile; | |
242 QAction fActionCancel; | 236 QAction fActionCancel; |
243 QAction fActionClearBreakpoints; | 237 QAction fActionClearBreakpoints; |
244 QAction fActionClearDeletes; | 238 QAction fActionClearDeletes; |
245 QAction fActionClose; | 239 QAction fActionClose; |
246 QAction fActionCreateBreakpoint; | 240 QAction fActionCreateBreakpoint; |
247 QAction fActionDelete; | 241 QAction fActionDelete; |
248 QAction fActionDirectory; | 242 QAction fActionDirectory; |
249 QAction fActionGoToLine; | 243 QAction fActionGoToLine; |
250 QAction fActionInspector; | 244 QAction fActionInspector; |
251 QAction fActionSettings; | 245 QAction fActionSettings; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 /** | 321 /** |
328 Populates the combo box widget with with the debugger draw command info. | 322 Populates the combo box widget with with the debugger draw command info. |
329 */ | 323 */ |
330 void setupComboBox(); | 324 void setupComboBox(); |
331 | 325 |
332 /** | 326 /** |
333 Fills in the overview pane with text | 327 Fills in the overview pane with text |
334 */ | 328 */ |
335 void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, i
nt numRuns); | 329 void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, i
nt numRuns); |
336 | 330 |
337 | |
338 /** | |
339 Render the supplied picture several times tracking the time consumed | |
340 by each command. | |
341 */ | |
342 void run(const SkPicture* pict, | |
343 sk_tools::PictureRenderer* renderer, | |
344 int repeats); | |
345 | |
346 bool isPaused() const { | 331 bool isPaused() const { |
347 return fActionPause.isChecked(); | 332 return fActionPause.isChecked(); |
348 } | 333 } |
349 }; | 334 }; |
350 | 335 |
351 #endif // SKDEBUGGERUI_H | 336 #endif // SKDEBUGGERUI_H |
OLD | NEW |