Skip to content

Commit

Permalink
[gdb] Highlight priority boost in px4_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut committed Oct 21, 2023
1 parent bd44a42 commit 7a9a2a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 1.3.1

- Highlight priority boosts in `px4_tasks` command.
- Fix `px4_tasks` and `px4_files` rendering when no tasks are present.
- Fix `px4_gpio` default sort key indexing.

Expand Down
3 changes: 2 additions & 1 deletion src/emdbg/debug/px4/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ def all_tasks_as_table(gdb, sort_key: str = None, with_stack_usage: bool = True,
task.load.total//1000, f"{(relative * 100):.1f}",
Text.assemble((str(task.stack_used) if with_stack_usage else "", "bold red" if stack_overflow else "")),
Text.assemble((str(task.stack_limit), "bold" if stack_overflow else "")),
task.sched_priority, task.init_priority, file_description, task.short_state]
Text.assemble((str(task.sched_priority), "bold red" if task.sched_priority > task.init_priority else "")),
task.init_priority, file_description, task.short_state]
if with_waiting:
row.append(task.waiting_for)
rows.append(row)
Expand Down

0 comments on commit 7a9a2a1

Please sign in to comment.