From 307f96a519d458818d32d8c63eb3628c25db97e4 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 21 Apr 2023 15:59:39 +1000 Subject: [PATCH] Reorder options in Cachegrind's `-h` output. Put the commonly used ones first. --- cachegrind/cg_arch.c | 2 +- cachegrind/cg_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cachegrind/cg_arch.c b/cachegrind/cg_arch.c index 57570dd638..52e8982184 100644 --- a/cachegrind/cg_arch.c +++ b/cachegrind/cg_arch.c @@ -317,7 +317,7 @@ void VG_(print_cache_clo_opts)() " --I1=,, set I1 cache manually\n" " --D1=,, set D1 cache manually\n" " --LL=,, set LL cache manually\n" - ); + ); } diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index c4e111aa30..c17ab975b0 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -1758,12 +1758,12 @@ static Bool cg_process_cmd_line_option(const HChar* arg) static void cg_print_usage(void) { - VG_(print_cache_clo_opts)(); VG_(printf)( +" --cachegrind-out-file= output file name [cachegrind.out.%%p]\n" " --cache-sim=yes|no collect cache stats? [yes]\n" " --branch-sim=yes|no collect branch prediction stats? [no]\n" -" --cachegrind-out-file= output file name [cachegrind.out.%%p]\n" ); + VG_(print_cache_clo_opts)(); } static void cg_print_debug_usage(void) -- 2.47.2