mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 08:53:44 +08:00
Name Python threads. (#2767)
This commit is contained in:
committed by
Philipp Moritz
parent
32f7d6fcf5
commit
224d38cbb2
@@ -87,7 +87,9 @@ class Profiler(object):
|
||||
self.lock = threading.Lock()
|
||||
|
||||
def start_flush_thread(self):
|
||||
t = threading.Thread(target=self._periodically_flush_profile_events)
|
||||
t = threading.Thread(
|
||||
target=self._periodically_flush_profile_events,
|
||||
name="ray_push_profiling_information")
|
||||
# Making the thread a daemon causes it to exit when the main thread
|
||||
# exits.
|
||||
t.daemon = True
|
||||
|
||||
Reference in New Issue
Block a user