Unverified Commit 9e8b26fe authored by sandreim's avatar sandreim Committed by GitHub
Browse files

Per subsystem CPU usage tracking (#4239)



* SubsystemContext: add subsystem name str

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* Overseer builder proc macro changes

* initilize SubsystemContext name field.
* Add subsystem name in TaskKind::launch_task()

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* Update ToOverseer enum

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* Assign subsystem names to orphan tasks

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* cargo fmt

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* SubsystemContext: add subsystem name str

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* Overseer builder proc macro changes

* initilize SubsystemContext name field.
* Add subsystem name in TaskKind::launch_task()

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* Update ToOverseer enum

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* Assign subsystem names to orphan tasks

Signed-off-by: sandreim's avatarAndrei Sandu <sandu.andrei@gmail.com>

* cargo fmt

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Rebase changes for new spawn() group param

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Add subsystem constat in JobTrait

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Add subsystem string

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Fix tests

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Fix spawn() calls

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* cargo fmt

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Fix

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Fix tests

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* fix

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Fix more tests

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Address PR review feedback #1



Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Address PR review round 2

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* Fixes
- remove JobTrait::Subsystem
- fix tests

Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>

* update Cargo.lock

Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
parent 83e5955b
Pipeline #165611 failed with stages
in 36 minutes and 32 seconds