mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Added Custom Performance Monitor and feature to read intermediate values of Monitor
Custom monitors can be added/removed/checked using `Performance.add_custom_monitor`/`Performance.remove_custom_monitor`/`Performance.has_custom_monitor` The value can be viewed in the `Monitor` tab of Debugger. Text before `/` is used to categorize the custom monitor. `EditorPerformanceProfiler` class is created to separate logic from `ScriptEditorDebugger` User can click on the graph of monitors to read the value at that point. Graph includes intermediate base lines.
This commit is contained in:
@@ -52,6 +52,7 @@ class ItemList;
|
||||
class EditorProfiler;
|
||||
class EditorVisualProfiler;
|
||||
class EditorNetworkProfiler;
|
||||
class EditorPerformanceProfiler;
|
||||
class SceneDebuggerTree;
|
||||
|
||||
class ScriptEditorDebugger : public MarginContainer {
|
||||
@@ -113,16 +114,8 @@ private:
|
||||
// Each debugger should have it's tree in the future I guess.
|
||||
const Tree *editor_remote_tree = nullptr;
|
||||
|
||||
List<Vector<float>> perf_history;
|
||||
Vector<float> perf_max;
|
||||
Vector<TreeItem *> perf_items;
|
||||
|
||||
Map<int, String> profiler_signature;
|
||||
|
||||
Tree *perf_monitors;
|
||||
Control *perf_draw;
|
||||
Label *info_message;
|
||||
|
||||
Tree *vmem_tree;
|
||||
Button *vmem_refresh;
|
||||
Button *vmem_export;
|
||||
@@ -141,6 +134,7 @@ private:
|
||||
EditorProfiler *profiler;
|
||||
EditorVisualProfiler *visual_profiler;
|
||||
EditorNetworkProfiler *network_profiler;
|
||||
EditorPerformanceProfiler *performance_profiler;
|
||||
|
||||
EditorNode *editor;
|
||||
|
||||
@@ -152,8 +146,6 @@ private:
|
||||
|
||||
EditorDebuggerNode::CameraOverride camera_override;
|
||||
|
||||
void _performance_draw();
|
||||
void _performance_select();
|
||||
void _stack_dump_frame_selected();
|
||||
|
||||
void _file_selected(const String &p_file);
|
||||
|
||||
Reference in New Issue
Block a user