diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-01-13 01:21:54 +0100 |
|---|---|---|
| committer | Thog <me@thog.eu> | 2020-01-13 01:21:54 +0100 |
| commit | 5facc0c07f8a3f6fd0f39229044fe120501162a7 (patch) | |
| tree | 58ea7980cd38214806152b5f13f2427102a78564 /Ryujinx.Profiler | |
| parent | f0055482fd1aef9dcae7c6c4c6e01483f11f7839 (diff) | |
Name all threads (#886)
* Name all threads
Close #874
* use ThreadName instead of ThreadId in Logging
Diffstat (limited to 'Ryujinx.Profiler')
| -rw-r--r-- | Ryujinx.Profiler/InternalProfile.cs | 5 | ||||
| -rw-r--r-- | Ryujinx.Profiler/UI/ProfileWindowManager.cs | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/Ryujinx.Profiler/InternalProfile.cs b/Ryujinx.Profiler/InternalProfile.cs index 46984601..03462444 100644 --- a/Ryujinx.Profiler/InternalProfile.cs +++ b/Ryujinx.Profiler/InternalProfile.cs @@ -55,7 +55,10 @@ namespace Ryujinx.Profiler _cleanupRunning = true; // Create cleanup thread. - _cleanupThread = new Thread(CleanupLoop); + _cleanupThread = new Thread(CleanupLoop) + { + Name = "Profiler.CleanupThread" + }; _cleanupThread.Start(); } diff --git a/Ryujinx.Profiler/UI/ProfileWindowManager.cs b/Ryujinx.Profiler/UI/ProfileWindowManager.cs index c6a65a31..13603029 100644 --- a/Ryujinx.Profiler/UI/ProfileWindowManager.cs +++ b/Ryujinx.Profiler/UI/ProfileWindowManager.cs @@ -21,7 +21,10 @@ namespace Ryujinx.Profiler.UI { _profilerRunning = true; _prevTime = 0; - _profileThread = new Thread(ProfileLoop); + _profileThread = new Thread(ProfileLoop) + { + Name = "Profiler.ProfileThread" + }; _profileThread.Start(); } } @@ -60,7 +63,10 @@ namespace Ryujinx.Profiler.UI using (_window = new ProfileWindow()) { // Create thread for render loop - _renderThread = new Thread(RenderLoop); + _renderThread = new Thread(RenderLoop) + { + Name = "Profiler.RenderThread" + }; _renderThread.Start(); while (_profilerRunning) |
