Re: [PATCH linux-next 2/3] tools/delaytop: add flexible sorting by delay field
From: xu.xin16
Date: Mon Sep 01 2025 - 23:44:26 EST
> From: Fan Yu <fan.yu9@xxxxxxxxxx>
>
> The original delaytop only supported static output with limited
> interaction. Users had to restart the tool with different command-line
> options to change sorting or display modes, which disrupted continuous
> monitoring and reduced productivity during performance investigations.
>
> Adds real-time interactive controls through keyboard input:
> 1) Add interactive menu system with visual prompts
> 2) Support dynamic sorting changes without restarting
> 3) Enable toggle of memory verbose mode with 'M' key
>
> The interactive mode transforms delaytop from a static monitoring tool
> into a dynamic investigation platform, allowing users to adapt the
> view in real-time based on observed performance patterns.
>
> Signed-off-by: Fan Yu <fan.yu9@xxxxxxxxxx>
> ---
> tools/accounting/delaytop.c | 112 ++++++++++++++++++++++++++----------
> 1 file changed, 82 insertions(+), 30 deletions(-)
Reviewed-by: xu xin <xu.xin16@xxxxxxxxxx>