You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Support threads in the script debugger
* This implementation adds threads on the side of the client (script debugger). * Some functions of the debugger are optimized. * The profile is also now thread safe using atomics. * The editor can switch between multiple threads when debugging. This PR adds threaded support for the script language debugger. Every thread has its own thread local data and it will connect to the debugger using multiple thread IDs. This means that, now, the editor can receive multiple threads entering debug mode at the same time.
This commit is contained in:
@@ -539,12 +539,12 @@ private:
|
||||
|
||||
struct Profile {
|
||||
StringName signature;
|
||||
uint64_t call_count = 0;
|
||||
uint64_t self_time = 0;
|
||||
uint64_t total_time = 0;
|
||||
uint64_t frame_call_count = 0;
|
||||
uint64_t frame_self_time = 0;
|
||||
uint64_t frame_total_time = 0;
|
||||
SafeNumeric<uint64_t> call_count;
|
||||
SafeNumeric<uint64_t> self_time;
|
||||
SafeNumeric<uint64_t> total_time;
|
||||
SafeNumeric<uint64_t> frame_call_count;
|
||||
SafeNumeric<uint64_t> frame_self_time;
|
||||
SafeNumeric<uint64_t> frame_total_time;
|
||||
uint64_t last_frame_call_count = 0;
|
||||
uint64_t last_frame_self_time = 0;
|
||||
uint64_t last_frame_total_time = 0;
|
||||
|
||||
Reference in New Issue
Block a user