PR_fprintf(globals.mRequest.mFD, "<td align=right>" ST_MICROVAL_FORMAT "</td>\n", ST_MICROVAL_PRINTABLE(heapCost));
int displayTopAllocations(STRun* aRun, int aWantCallsite){    int retval = 0;    if(NULL != aRun)    {        if(0 < aRun->mAllocationCount)        {            PRUint32 loop = 0;            STAllocation* current = NULL;            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>Index</b></td>\n");            PR_fprintf(globals.mRequest.mFD, "<td><b>Byte Size</b></td>\n");            PR_fprintf(globals.mRequest.mFD, "<td><b>Lifespan Seconds</b></td>\n");            PR_fprintf(globals.mRequest.mFD, "<td><b>Weight</b></td>\n");            if(0 != aWantCallsite)            {                PR_fprintf(globals.mRequest.mFD, "<td><b>Origin Callsite</b></td>\n");            }            PR_fprintf(globals.mRequest.mFD, "</tr>\n");            /*            ** Loop over the items, up to some limit or until the end.            */            for(loop = 0; loop < globals.mOptions.mListItemMax && loop < aRun->mAllocationCount; loop++)            {                current = aRun->mAllocations[loop];                if(NULL != current)                {                    PRUint32 lifespan = current->mMaxTimeval - current->mMinTimeval;                    PRUint32 size = byteSize(current);                    PRUint64 weight64 = LL_INIT(0, 0);                    char buffer[32];                    LL_MUL(weight64, (PRUint64)size, (PRUint64)lifespan);                    PR_fprintf(globals.mRequest.mFD, "<tr>\n");                    /*                    ** Rank.                    */                    PR_fprintf(globals.mRequest.mFD, "<td align=right>%u</td>\n", loop + 1);                    /*                    ** Index.                    */                    PR_snprintf(buffer, sizeof(buffer), "%u", current->mRunIndex);                    PR_fprintf(globals.mRequest.mFD, "<td align=right>\n");                    htmlAllocationAnchor(current, buffer);                    PR_fprintf(globals.mRequest.mFD, "</td>\n");                    /*                    ** Byte Size.                    */                    PR_fprintf(globals.mRequest.mFD, "<td align=right>%u</td>\n", size);                    /*                    ** Lifespan.                    */                    PR_fprintf(globals.mRequest.mFD, "<td align=right>" ST_TIMEVAL_FORMAT "</td>\n", ST_TIMEVAL_PRINTABLE(lifespan));                    /*                    ** Weight.                    */                    PR_fprintf(globals.mRequest.mFD, "<td align=right>%llu</td>\n", weight64);                    if(0 != aWantCallsite)                    {                        /*                        ** Callsite.                        */                        PR_fprintf(globals.mRequest.mFD, "<td>");                        htmlCallsiteAnchor(current->mEvents[0].mCallsite, NULL, 0);                        PR_fprintf(globals.mRequest.mFD, "</td>\n");                    }                    PR_fprintf(globals.mRequest.mFD, "</tr>\n");                }            }            PR_fprintf(globals.mRequest.mFD, "</table>\n");        }    }    else    {        retval = __LINE__;        REPORT_ERROR(__LINE__, displayTopAllocations);    }    return retval;}