Improve lagging message description (#24208)

* Improve lag prints process name

* Cleanup

* small change

* Add bridge process name

* Use getproctitle

* Remaining
This commit is contained in:
Gijs Koning 2022-04-15 17:11:53 +02:00 committed by GitHub
parent 1fa1c44342
commit 0254a3fe11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -2,9 +2,10 @@
import gc
import os
import time
import multiprocessing
from typing import Optional
from setproctitle import getproctitle # pylint: disable=no-name-in-module
from common.clock import sec_since_boot # pylint: disable=no-name-in-module, import-error
from selfdrive.hardware import PC, TICI
@ -56,7 +57,7 @@ class Ratekeeper:
self._print_delay_threshold = print_delay_threshold
self._frame = 0
self._remaining = 0.0
self._process_name = multiprocessing.current_process().name
self._process_name = getproctitle()
@property
def frame(self) -> int: