8dedff1fa1cebac92b4a66ae13a3f94a2ed3e709
hiram
  Fri Feb 11 14:41:51 2011 -0800
adding printVmPeak() debug call to each of the big* commands
diff --git src/utils/bigWigToWig/bigWigToWig.c src/utils/bigWigToWig/bigWigToWig.c
index 65262d3..df2e867 100644
--- src/utils/bigWigToWig/bigWigToWig.c
+++ src/utils/bigWigToWig/bigWigToWig.c
@@ -1,24 +1,25 @@
 /* bigWigToWig - Convert bigWig to wig.  This will keep more of the same structure of the 
  * original wig than bigWigToBedGraph does, but still will break up large stepped sections into 
  * smaller ones. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "udc.h"
 #include "bigWig.h"
+#include "obscure.h"
 
 static char const rcsid[] = "$Id: bigWigToWig.c,v 1.1 2009/11/13 00:26:28 kent Exp $";
 
 char *clChrom = NULL;
 int clStart = -1;
 int clEnd = -1;
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "bigWigToWig - Convert bigWig to wig.  This will keep more of the same structure of the\n"
   "original wig than bigWigToBedGraph does, but still will break up large stepped sections\n"
   "into smaller ones.\n"
   "usage:\n"
@@ -63,17 +64,19 @@
 carefulClose(&f);
 bbiFileClose(&bwf);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 3)
     usage();
 clChrom = optionVal("chrom", clChrom);
 clStart = optionInt("start", clStart);
 clEnd = optionInt("end", clEnd);
 udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
 bigWigToWig(argv[1], argv[2]);
+if (verboseLevel() > 1)
+    printVmPeak();
 return 0;
 }