This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new d6cee21a7 benchmarks/cyclictest: Print the summary in quiet mode.
d6cee21a7 is described below

commit d6cee21a707eea65ca6c079310a6161478a0e761
Author: ViezeVingertjes <[email protected]>
AuthorDate: Thu Nov 26 10:23:35 2026 +0100

    benchmarks/cyclictest: Print the summary in quiet mode.
    
    The -q option is documented to print a summary only on exit, but it
    suppressed all output.  Print the final statistics once after the run.
    
    Tested on Waveshare ESP32-S3-Touch-AMOLED-2.16: "cyclictest -q" printed
    nothing before; it now prints one statistics line per thread when the
    test ends.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: ViezeVingertjes <[email protected]>
---
 benchmarks/cyclictest/cyclictest.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/benchmarks/cyclictest/cyclictest.c 
b/benchmarks/cyclictest/cyclictest.c
index 948f11f53..eccd37652 100644
--- a/benchmarks/cyclictest/cyclictest.c
+++ b/benchmarks/cyclictest/cyclictest.c
@@ -1077,6 +1077,16 @@ int main(int argc, char *argv[])
       pthread_join(stats[i]->id, NULL);
     }
 
+  /* In quiet mode, print only the final summary */
+
+  if (config.quiet)
+    {
+      for (i = 0; i < config.threads; ++i)
+        {
+          print_stat(params[i], i);
+        }
+    }
+
   if (config.histogram)
     {
       print_hist(params, config.threads);

Reply via email to