Manager cleanup (#20231)

* move manager in folder

* inital refactor

* call start

* small cleanup

* add comments

* use self.signal()

* order shouldnt matter

* newlines

* add helpers

* newlines

* add process config

* split out build part of manager

* this should fix most tests

* no sensord on pc

* dont start athena

* remove comment

* fix old athena test

* fix inject model

* fix test car models

* should be not none

* fix helpers exitcode

* ignore manage_athenad

* Use time.monotonic()

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* combine init, remove spinner

* move manager test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
Willem Melching
2021-03-05 11:03:23 +01:00
committed by GitHub
parent 59698344a2
commit 5a3b511306
31 changed files with 786 additions and 755 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ import argparse
import re
from collections import defaultdict
import selfdrive.manager as manager
from selfdrive.manager.process_config import managed_processes
# Do statistics every 5 seconds
PRINT_INTERVAL = 5
@@ -36,7 +36,7 @@ monitored_proc_names = [
# android procs
'SurfaceFlinger', 'sensors.qcom'
] + manager.car_started_processes + manager.persistent_processes
] + list(managed_processes.keys())
cpu_time_names = ['user', 'system', 'children_user', 'children_system']