~chtsanti/squid/icap-max-connections

« back to all changes in this revision

Viewing changes to src/stat.cc

  • Committer: Christos Tsantilas
  • Date: 2009-02-18 22:18:35 UTC
  • mfrom: (9294.1.215 trunk)
  • Revision ID: chtsanti@users.sourceforge.net-20090218221835-lfxxe3bs8uhu0b1h
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
430
430
{
431
431
    StoreEntry *sentry = (StoreEntry *)data;
432
432
 
 
433
// format: "%12s %15s %6s %12s\n","Alloc Size","Count","Delta","Alloc/sec"
433
434
    if (number > 0)
434
 
        storeAppendPrintf(sentry, "%d\t %d\t %d\t %.1f\n", size, number, number - oldnum, xdiv((number - oldnum), xm_deltat));
 
435
        storeAppendPrintf(sentry, "%12d %15d %6d %.1f\n", size, number, number - oldnum, xdiv((number - oldnum), xm_deltat));
435
436
}
436
437
 
437
438
#endif
752
753
    xm_deltat = current_dtime - xm_time;
753
754
    xm_time = current_dtime;
754
755
    storeAppendPrintf(sentry, "\nMemory allocation statistics\n");
755
 
    storeAppendPrintf(sentry, "Allocation Size\t Alloc Count\t Alloc Delta\t Allocs/sec \n");
 
756
    storeAppendPrintf(sentry, "%12s %15s %6s %12s\n","Alloc Size","Count","Delta","Alloc/sec");
756
757
    malloc_statistics(info_get_mallstat, sentry);
757
758
#endif
758
759
}