[sysprof] sysprof-cli: Print out number of samples when saving



commit ded375462bfc85d0a1319a2dadeb9723b7ee2896
Author: Søren Sandmann Pedersen <sandmann daimi au dk>
Date:   Fri Apr 23 11:22:06 2010 -0400

    sysprof-cli: Print out number of samples when saving

 sysprof-cli.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/sysprof-cli.c b/sysprof-cli.c
index 2500dda..90f5b13 100644
--- a/sysprof-cli.c
+++ b/sysprof-cli.c
@@ -47,7 +47,9 @@ dump_data (Application *app)
     GError *err = NULL;
     Profile *profile;
 
-    printf ("Saving profile in %s ... ", app->outfile);
+    printf ("Saving profile (%d samples) in %s ... ",
+	    collector_get_n_samples (app->collector),
+	    app->outfile);
     fflush (stdout);
 
     collector_stop (app->collector);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]