mirror of https://github.com/commaai/openpilot.git
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:
parent
1fa1c44342
commit
0254a3fe11
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue