mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +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:
parent
202e4b2c1e
commit
5e512b705e
17 changed files with 409 additions and 223 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue