src/hg/oneShot/freen/freen.c 1.97
1.97 2010/02/06 21:43:02 kent
Changing 'subTrack' to 'parent' internally. A backwards compatability routine will make it so either tag can be used in a trackDb file.
Index: src/hg/oneShot/freen/freen.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/oneShot/freen/freen.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -b -B -U 4 -r1.96 -r1.97
--- src/hg/oneShot/freen/freen.c 4 Jan 2010 19:12:39 -0000 1.96
+++ src/hg/oneShot/freen/freen.c 6 Feb 2010 21:43:02 -0000 1.97
@@ -1,13 +1,20 @@
/* freen - My Pet Freen. */
+#include <unistd.h>
+#include <math.h>
+
#include "common.h"
-#include "options.h"
-#include "zlibFace.h"
-#include "memalloc.h"
-#include "dystring.h"
#include "linefile.h"
#include "hash.h"
-#include "portable.h"
+#include "options.h"
+#include "sqlNum.h"
+#include "udc.h"
+#include "localmem.h"
+#include "bigWig.h"
+#include "bigBed.h"
+#include "memalloc.h"
+
+#define TRAVERSE FALSE
void usage()
{
errAbort("freen - test some hairbrained thing.\n"
@@ -18,9 +25,28 @@
void freen(char *a)
/* Test some hair-brained thing. */
{
-uglyf("%s\n", simplifyPathToDir(a));
+struct bbiFile *bb;
+struct lm *lm;
+
+pushCarefulMemHandler(1000000000);
+printf("%d blocks %ld bytes after pushCarefulMemHandler\n", carefulCountBlocksAllocated(), carefulTotalAllocated());
+bb = bigBedFileOpen(a);
+printf("%d blocks %ld bytes after bigBedFileOpen\n", carefulCountBlocksAllocated(), carefulTotalAllocated());
+int i;
+for (i=0; i<2; ++i)
+ {
+ lm = lmInit(0);
+ printf("%d blocks %ld bytes after lmInit\n", carefulCountBlocksAllocated(), carefulTotalAllocated());
+ bigBedIntervalQuery(bb,"chr1",1,20000000,0,lm);
+ printf("%d blocks %ld bytes allocated after intervalQuery\n", carefulCountBlocksAllocated(), carefulTotalAllocated());
+ lmCleanup(&lm);
+ printf("%d blocks %ld bytes allocated after lmCleanup\n", carefulCountBlocksAllocated(), carefulTotalAllocated());
+ }
+bbiFileClose(&bb);
+printf("%d blocks %ld bytes allocated after bbiFileClose\n", carefulCountBlocksAllocated(), carefulTotalAllocated());
+popMemHandler();
}
int main(int argc, char *argv[])
/* Process command line. */