ff2e5ca85a15d099bda3faf3ab2aa6b96404c593 hiram Fri Feb 11 10:37:47 2011 -0800 adding printVmPeak() function to allow checking of maximum memory usage diff --git src/utils/wigToBigWig/wigToBigWig.c src/utils/wigToBigWig/wigToBigWig.c index 3fe92b4..e93d29c 100644 --- src/utils/wigToBigWig/wigToBigWig.c +++ src/utils/wigToBigWig/wigToBigWig.c @@ -1,18 +1,19 @@ /* wigToBigWig - Convert ascii format wig file (in fixedStep, variableStep or bedGraph format) * to binary big wig format.. */ #include "common.h" +#include "obscure.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "bigWig.h" #include "bwgInternal.h" #include "zlibFace.h" static char const rcsid[] = "$Id: wigToBigWig.c,v 1.9 2009/11/16 18:12:04 kent Exp $"; static int blockSize = 256; static int itemsPerSlot = 1024; static boolean clipDontDie = FALSE; static boolean doCompress = FALSE; void usage() @@ -50,17 +51,19 @@ { bigWigFileCreate(inName, chromSizes, blockSize, itemsPerSlot, clipDontDie, doCompress, outName); } int main(int argc, char *argv[]) /* Process command line. */ { optionInit(&argc, argv, options); blockSize = optionInt("blockSize", blockSize); itemsPerSlot = optionInt("itemsPerSlot", itemsPerSlot); clipDontDie = optionExists("clip"); doCompress = !optionExists("unc"); if (argc != 4) usage(); wigToBigWig(argv[1], argv[2], argv[3]); +if (verboseLevel() > 1) + printVmPeak(); return 0; }