8dedff1fa1cebac92b4a66ae13a3f94a2ed3e709
hiram
  Fri Feb 11 14:41:51 2011 -0800
adding printVmPeak() debug call to each of the big* commands
diff --git src/utils/bigBedSummary/bigBedSummary.c src/utils/bigBedSummary/bigBedSummary.c
index b1eba94..d738393 100644
--- src/utils/bigBedSummary/bigBedSummary.c
+++ src/utils/bigBedSummary/bigBedSummary.c
@@ -1,24 +1,25 @@
 /* bigBedSummary - Extract summary information from a bigBed file.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "sqlNum.h"
 #include "bigBed.h"
 #include "asParse.h"
 #include "udc.h"
+#include "obscure.h"
 
 static char const rcsid[] = "$Id: bigBedSummary.c,v 1.7 2009/09/08 19:50:24 kent Exp $";
 
 char *summaryType = "coverage";
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "bigBedSummary - Extract summary information from a bigBed file.\n"
   "usage:\n"
   "   bigBedSummary file.bb chrom start end dataPoints\n"
   "Get summary data from bigBed for indicated region, broken into\n"
   "dataPoints equal parts.  (Use dataPoints=1 for simple summary.)\n"
   "options:\n"
@@ -101,17 +102,19 @@
 optionInit(&argc, argv, options);
 udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
 if (optionExists("fields"))
     {
     if (argc < 2)
         usage();
     bigBedFields(argv[1]);
     }
 else
     {
     summaryType = optionVal("type", summaryType);
     if (argc != 6)
 	usage();
     bigBedSummary(argv[1], argv[2], sqlUnsigned(argv[3]), sqlUnsigned(argv[4]), sqlUnsigned(argv[5]));
     }
+if (verboseLevel() > 1)
+    printVmPeak();
 return 0;
 }