Revert "Custom setproctitle (#32667)"

This reverts commit 3365ed5eff.
This commit is contained in:
Adeeb Shihadeh
2024-06-10 19:55:41 -07:00
parent 4684651dc5
commit 5b51f03967
7 changed files with 14 additions and 40 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import os
import time
import numpy as np
from multiprocessing import Process
from openpilot.common.threadname import setthreadname
from setproctitle import setproctitle
def waste(core):
os.sched_setaffinity(0, [core,])
@@ -16,7 +16,7 @@ def waste(core):
j = 0
while 1:
if (i % 100) == 0:
setthreadname("%3d: %8d" % (core, i))
setproctitle("%3d: %8d" % (core, i))
lt = time.monotonic()
print("%3d: %8d %f %.2f" % (core, i, lt-st, j))
st = lt