6eb7b642e4d1286b4662ea3d527a9bc09b17db70 kate Wed May 4 10:53:50 2016 -0700 Performance work: Add measureTiming support. Also, restructure GTEx to move heavy lifting to print routine so closing section will save time. Also, a few label changes for expression sections. refs #17244 diff --git src/hg/hgGene/hgGene.h src/hg/hgGene/hgGene.h index a1f0a82..501ae24 100644 --- src/hg/hgGene/hgGene.h +++ src/hg/hgGene/hgGene.h @@ -36,30 +36,32 @@ /* Return TRUE if this section needs to be printed. */ void (*print)(struct section *section, struct sqlConnection *conn, char *geneId); /* Print section given connection to genome database. */ /* Some section-specific data. */ char *raFile; /* Ra file to load additional info from. */ void *items; /* Some list of items. */ /* Some FlyBase specific stuff. */ char *flyBaseTable; /* Which table to use. */ char *rgdGeneTable; /* Which table to use. */ void *extras; // Contains any section specific stuff + int checkTime; // Time to check existence (for performance tuning) */ + int printTime; // Time to print (for performance tuning) */ }; struct section *sectionNew(struct hash *sectionRa, char *name); /* Create a section loading all common parts but the methods * sectionRa. */ struct section *linksSection(struct sqlConnection *conn, struct hash *sectionRa); /* Create links section. */ struct section *otherOrgsSection(struct sqlConnection *conn, struct hash *sectionRa); /* Create other organisms section. */ struct section *sequenceSection(struct sqlConnection *conn,