/**************************************************************************/ /* editor_visual_profiler.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ #include "editor_visual_profiler.h" #include "core/os/os.h" #include "editor/editor_settings.h" #include "editor/editor_string_names.h" #include "editor/themes/editor_scale.h" #include "scene/resources/image_texture.h" void EditorVisualProfiler::add_frame_metric(const Metric &p_metric) { … } void EditorVisualProfiler::clear() { … } String EditorVisualProfiler::_get_time_as_text(float p_time) { … } Color EditorVisualProfiler::_get_color_from_signature(const StringName &p_signature) const { … } void EditorVisualProfiler::_item_selected() { … } void EditorVisualProfiler::_update_plot() { … } void EditorVisualProfiler::_update_frame(bool p_focus_selected) { … } void EditorVisualProfiler::_activate_pressed() { … } void EditorVisualProfiler::_clear_pressed() { … } void EditorVisualProfiler::_notification(int p_what) { … } void EditorVisualProfiler::_graph_tex_draw() { … } void EditorVisualProfiler::_graph_tex_mouse_exit() { … } void EditorVisualProfiler::_cursor_metric_changed(double) { … } void EditorVisualProfiler::_graph_tex_input(const Ref<InputEvent> &p_ev) { … } int EditorVisualProfiler::_get_cursor_index() const { … } void EditorVisualProfiler::disable_seeking() { … } void EditorVisualProfiler::_combo_changed(int) { … } void EditorVisualProfiler::_bind_methods() { … } void EditorVisualProfiler::_update_button_text() { … } void EditorVisualProfiler::set_enabled(bool p_enable) { … } void EditorVisualProfiler::set_pressed(bool p_pressed) { … } bool EditorVisualProfiler::is_profiling() { … } Vector<Vector<String>> EditorVisualProfiler::get_data_as_csv() const { … } EditorVisualProfiler::EditorVisualProfiler() { … }