| 141 | } |
| 142 | |
| 143 | int Performance::_get_node_count() const { |
| 144 | MainLoop *ml = OS::get_singleton()->get_main_loop(); |
| 145 | SceneTree *sml = Object::cast_to<SceneTree>(ml); |
| 146 | if (!sml) { |
| 147 | return 0; |
| 148 | } |
| 149 | return sml->get_node_count(); |
| 150 | } |
| 151 | |
| 152 | String Performance::get_monitor_name(Monitor p_monitor) const { |
| 153 | ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, String()); |
nothing calls this directly
no test coverage detected