8dedff1fa1cebac92b4a66ae13a3f94a2ed3e709
hiram
  Fri Feb 11 14:41:51 2011 -0800
adding printVmPeak() debug call to each of the big* commands
diff --git src/utils/bigWigToBedGraph/bigWigToBedGraph.c src/utils/bigWigToBedGraph/bigWigToBedGraph.c
index 2531e6d..72813bb 100644
--- src/utils/bigWigToBedGraph/bigWigToBedGraph.c
+++ src/utils/bigWigToBedGraph/bigWigToBedGraph.c
@@ -1,23 +1,24 @@
 /* bigWigToBedGraph - Convert from bigWig to bedGraph format.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "localmem.h"
 #include "udc.h"
 #include "bigWig.h"
+#include "obscure.h"
 
 static char const rcsid[] = "$Id: bigWigToBedGraph.c,v 1.5 2009/09/08 19:50:25 kent Exp $";
 
 char *clChrom = NULL;
 int clStart = -1;
 int clEnd = -1;
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "bigWigToBedGraph - Convert from bigWig to bedGraph format.\n"
   "usage:\n"
   "   bigWigToBedGraph in.bigWig out.bedGraph\n"
   "options:\n"
@@ -63,17 +64,19 @@
 carefulClose(&f);
 bbiFileClose(&bwf);
 }
 
 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);
 udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
 if (argc != 3)
     usage();
 bigWigToBedGraph(argv[1], argv[2]);
+if (verboseLevel() > 1)
+    printVmPeak();
 return 0;
 }