summaryrefslogtreecommitdiffstats
path: root/editor/script_editor_debugger.h
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2019-02-18 01:25:26 +0100
committerlupoDharkael <izhe@hotmail.es>2019-03-28 08:42:29 +0100
commit2c68ce930c32fa13470269c75357553f020bd44c (patch)
tree72da5233e8e7335f52c5884b80a90e27a1b10576 /editor/script_editor_debugger.h
parentf5477ee36f2d34a5d6db0ee3e1516e9c12be28d5 (diff)
downloadredot-engine-2c68ce930c32fa13470269c75357553f020bd44c.tar.gz
Add CSV export to profiling data
Diffstat (limited to 'editor/script_editor_debugger.h')
-rw-r--r--editor/script_editor_debugger.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/script_editor_debugger.h b/editor/script_editor_debugger.h
index 49651ad9c9..69d03b9b8b 100644
--- a/editor/script_editor_debugger.h
+++ b/editor/script_editor_debugger.h
@@ -77,6 +77,7 @@ class ScriptEditorDebugger : public Control {
LineEdit *live_edit_root;
Button *le_set;
Button *le_clear;
+ Button *export_csv;
bool updating_scene_tree;
float inspect_scene_tree_timeout;
@@ -92,7 +93,13 @@ class ScriptEditorDebugger : public Control {
Tree *inspect_scene_tree;
Button *clearbutton;
PopupMenu *item_menu;
+
EditorFileDialog *file_dialog;
+ enum FileDialogMode {
+ SAVE_CSV,
+ SAVE_NODE,
+ };
+ FileDialogMode file_dialog_mode;
int error_count;
int warning_count;
@@ -196,6 +203,8 @@ class ScriptEditorDebugger : public Control {
void _error_tree_item_rmb_selected(const Vector2 &p_pos);
void _item_menu_id_pressed(int p_option);
+ void _export_csv();
+
protected:
void _notification(int p_what);
static void _bind_methods();