PR_fprintf(globals.mRequest.mFD, "<td align=right valign=top>%u</td>\n", run->mStats.mCompositeCount);   PR_fprintf(globals.mRequest.mFD, "<td align=right valign=top>" ST_MICROVAL_FORMAT "</td>\n", ST_MICROVAL_PRINTABLE(run->mStats.mHeapRuntimeCost));
int displayTopCallsites(tmcallsite** aCallsites, PRUint32 aCallsiteCount, PRUint32 aStamp, int aRealName){    int retval = 0;    if(NULL != aCallsites && 0 < aCallsiteCount)    {        PRUint32 traverse = 0;        STRun* run = NULL;        tmcallsite* site = NULL;        int headerDisplayed = 0;        PRUint32 displayed = 0;        /*        ** Fixup the stamp.        */        if(0 == aStamp && NULL != globals.mCache.mSortedRun)        {            aStamp = globals.mCache.mSortedRun->mStats.mStamp;        }        /*        ** Sort the things.        */        qsort(aCallsites, aCallsiteCount, sizeof(tmcallsite*), compareCallsites);        /*        ** Time for output.        */        for(traverse = 0; traverse < aCallsiteCount && globals.mOptions.mListItemMax > displayed; traverse++)        {            site = aCallsites[traverse];            run = CALLSITE_RUN(site);            /*            ** Only if the same stamp....            */            if(aStamp == run->mStats.mStamp)            {                /*                ** We got a header yet?                */                if(0 == headerDisplayed)                {                    headerDisplayed = __LINE__;                    PR_fprintf(globals.mRequest.mFD, "<table border=1>\n");                    PR_fprintf(globals.mRequest.mFD, "<tr>\n");                    PR_fprintf(globals.mRequest.mFD, "<td><b>Rank</b></td>\n");                    PR_fprintf(globals.mRequest.mFD, "<td><b>Callsite</b></td>\n");                    PR_fprintf(globals.mRequest.mFD, "<td><b>Composite Size</b></td>\n");                    PR_fprintf(globals.mRequest.mFD, "<td><b>Composite Seconds</b></td>\n");                    PR_fprintf(globals.mRequest.mFD, "<td><b>Composite Weight</b></td>\n");                    PR_fprintf(globals.mRequest.mFD, "</tr>\n");                }                displayed++;                PR_fprintf(globals.mRequest.mFD, "<tr>\n");                /*                ** Rank.                */                PR_fprintf(globals.mRequest.mFD, "<td align=right valign=top>%u</td>\n", displayed);                /*                ** Method.                */                PR_fprintf(globals.mRequest.mFD, "<td>");                htmlCallsiteAnchor(site, NULL, aRealName);                PR_fprintf(globals.mRequest.mFD, "</td>\n");                /*                ** Size.                */                PR_fprintf(globals.mRequest.mFD, "<td align=right valign=top>%u</td>\n", run->mStats.mSize);                /*                ** Timeval.                */                PR_fprintf(globals.mRequest.mFD, "<td align=right valign=top>" ST_TIMEVAL_FORMAT "</td>\n", ST_TIMEVAL_PRINTABLE64(run->mStats.mTimeval64));                /*                ** Weight.                */                PR_fprintf(globals.mRequest.mFD, "<td align=right valign=top>%llu</td>\n", run->mStats.mWeight64);                PR_fprintf(globals.mRequest.mFD, "</tr>\n");                if(globals.mOptions.mListItemMax > displayed)                {                    /*                    ** Skip any dups.                    */                    while(((traverse + 1) < aCallsiteCount) && (site == aCallsites[traverse + 1]))                    {                        traverse++;                    }                }            }        }        /*        ** We need to terminate anything?        */        if(0 != headerDisplayed)        {            PR_fprintf(globals.mRequest.mFD, "</table>\n");        }    }    else    {        retval = __LINE__;        REPORT_ERROR(__LINE__, displayTopCallsites);    }    return retval;}