7c2225f25a445de7e6619f91f83b18a34f885cc1 hiram Fri Jan 4 10:40:50 2013 -0800 adding measureTiming outputs for png trash file write and cart write close at end plus a single stderr output for overall total time to apache error_log diff --git src/hg/hgTracks/mainMain.c src/hg/hgTracks/mainMain.c index 0f55726..4721409 100644 --- src/hg/hgTracks/mainMain.c +++ src/hg/hgTracks/mainMain.c @@ -38,21 +38,25 @@ /* Push very early error handling - this is just * for the benefit of the cgiVarExists, which * somehow can't be moved effectively into doMiddle. */ htmlPushEarlyHandlers(); cgiSpoof(&argc, argv); char * link = webTimeStampedLinkToResourceOnFirstCall("HGStyle.css",TRUE); // resource file link if (link) // wrapped in html htmlSetStyle(link); oldVars = hashNew(10); if (hIsGsidServer()) cartHtmlShell("GSID Sequence View", doMiddle, hUserCookie(), excludeVars, oldVars); else cartHtmlShell("UCSC Genome Browser v"CGI_VERSION, doMiddle, hUserCookie(), excludeVars, oldVars); if (measureTiming) + measureTime("Time to write and close cart"); +if (measureTiming) { fprintf(stdout, "<span class='timing'>Overall total time: %ld millis<br /></span>\n", clock1000() - enteredMainTime); } +fprintf(stderr, "CGI_TIME: hgTracks: Overall total time: %ld millis\n", + clock1000() - enteredMainTime); return 0; }