Revert "Custom setproctitle (#32667)"

This reverts commit 1f45e163559baa2a6127d5a5e8deb7067e32f813.

old-commit-hash: 5b51f03967
This commit is contained in:
Adeeb Shihadeh
2024-06-10 19:55:41 -07:00
parent 83350bbd22
commit e920e57530
7 changed files with 14 additions and 40 deletions

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