From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6a80d16c-9bcf-6be8-8267-076c933b463e@linux.intel.com> Date: Thu, 12 Oct 2023 09:07:04 +0100 MIME-Version: 1.0 Content-Language: en-US To: Kamil Konieczny , igt-dev@lists.freedesktop.org, Intel-gfx@lists.freedesktop.org, Tvrtko Ursulin References: <20231011083845.798413-1-tvrtko.ursulin@linux.intel.com> <20231011083845.798413-3-tvrtko.ursulin@linux.intel.com> <20231011124056.c3e3nnihpa2pahzn@kamilkon-desk.igk.intel.com> From: Tvrtko Ursulin In-Reply-To: <20231011124056.c3e3nnihpa2pahzn@kamilkon-desk.igk.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [igt-dev] [PATCH i-g-t 3/4] tools/intel_gpu_top: Optimise interactive display a bit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On 11/10/2023 13:40, Kamil Konieczny wrote: > Hi Tvrtko, > On 2023-10-11 at 09:38:44 +0100, Tvrtko Ursulin wrote: >> From: Tvrtko Ursulin >> >> Padding the percentage bars and table columns with spaces happens quite a >> lot so lets do better than putchar at a time. Have a table of visually >> empty strings and build the required length out of those chunks. >> >> While at it, also move the percentage bar table into its function scope. >> >> v2: >> * Fix checkpatch and use ARRAY_SIZE. (Kamil) >> >> Signed-off-by: Tvrtko Ursulin >> Cc: Kamil Konieczny > > Reviewed-by: Kamil Konieczny Thanks Kamil, now pushed! Regards, Tvrtko