8dedff1fa1cebac92b4a66ae13a3f94a2ed3e709
hiram
  Fri Feb 11 14:41:51 2011 -0800
adding printVmPeak() debug call to each of the big* commands
diff --git src/utils/bigBedToBed/bigBedToBed.c src/utils/bigBedToBed/bigBedToBed.c
index 6509b25..ba7b751 100644
--- src/utils/bigBedToBed/bigBedToBed.c
+++ src/utils/bigBedToBed/bigBedToBed.c
@@ -1,23 +1,24 @@
 /* bigBedToBed - Convert from bigBed to ascii bed format.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "localmem.h"
 #include "udc.h"
 #include "bigBed.h"
+#include "obscure.h"
 
 static char const rcsid[] = "$Id: bigBedToBed.c,v 1.7 2009/09/08 19:50:24 kent Exp $";
 
 char *clChrom = NULL;
 int clStart = -1;
 int clEnd = -1;
 int maxItems = 0;
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "bigBedToBed - Convert from bigBed to ascii bed format.\n"
   "usage:\n"
   "   bigBedToBed input.bb output.bed\n"
@@ -82,17 +83,19 @@
 bbiFileClose(&bbi);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 clChrom = optionVal("chrom", clChrom);
 clStart = optionInt("start", clStart);
 clEnd = optionInt("end", clEnd);
 maxItems = optionInt("maxItems", maxItems);
 udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
 if (argc != 3)
     usage();
 bigBedToBed(argv[1], argv[2]);
+if (verboseLevel() > 1)
+    printVmPeak();
 return 0;
 }