Mercurial > hg > octave-lyh
diff gui/src/main-window.h @ 14754:626a8ff2fe8c gui
The GUI now shows performance information in the status bar of the GUI (ie. how much overhead it causes in the octave thread compares to the terminal version).
* main-window: Added update timer. Added slot to update status bar with performance info.
* octave-link:: Added performance information struct and timing calls.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sat, 09 Jun 2012 19:59:43 +0200 |
parents | 564cc673bcc5 |
children | e3ae0850b105 |
line wrap: on
line diff
--- a/gui/src/main-window.h +++ b/gui/src/main-window.h @@ -30,6 +30,7 @@ #include <QCloseEvent> #include <QToolButton> #include <QComboBox> +#include <QTimer> // Editor includes #include "file-editor-interface.h" @@ -99,6 +100,8 @@ void debug_step_out (); void debug_quit (); + void update_performance_information (); + protected: void closeEvent (QCloseEvent * closeEvent); void read_settings (); @@ -111,6 +114,7 @@ QTerminal * _terminal; file_editor_interface * _file_editor; QMenu * _debug_menu; + QTimer _update_performance_information_timer; // Dock widgets. workspace_view * _workspace_view;