mirror of
https://github.com/gnustep/libs-performance.git
synced 2025-02-21 02:41:01 +00:00
Output all the stats info we have, not just the current cycle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@25703 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dd83044cad
commit
1f6d57315c
2 changed files with 40 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-12-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* GSThroughput.m: ([-description]) output information for periods
|
||||||
|
from last cycle as well as current cycle.
|
||||||
|
|
||||||
2007-09-14 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-09-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
Update to LGPL3
|
Update to LGPL3
|
||||||
|
|
|
@ -569,6 +569,24 @@ typedef struct {
|
||||||
if (my->period > 0)
|
if (my->period > 0)
|
||||||
{
|
{
|
||||||
tick = 0;
|
tick = 0;
|
||||||
|
/* Periods from last cycle
|
||||||
|
*/
|
||||||
|
for (i = my->period; i < my->numberOfPeriods; i++)
|
||||||
|
{
|
||||||
|
DInfo *info = &dperiods[i];
|
||||||
|
NSTimeInterval ti = info->tick + baseTime;
|
||||||
|
|
||||||
|
if (info->tick != tick)
|
||||||
|
{
|
||||||
|
tick = info->tick;
|
||||||
|
[m appendFormat: @"%u, %g, %g, %g, %@\n",
|
||||||
|
info->cnt, info->max, info->min, info->sum,
|
||||||
|
[NSDate dateWithTimeIntervalSinceReferenceDate:
|
||||||
|
ti]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Periods from current cycle
|
||||||
|
*/
|
||||||
for (i = 0; i < my->period; i++)
|
for (i = 0; i < my->period; i++)
|
||||||
{
|
{
|
||||||
DInfo *info = &dperiods[i];
|
DInfo *info = &dperiods[i];
|
||||||
|
@ -629,6 +647,23 @@ typedef struct {
|
||||||
if (my->period > 0)
|
if (my->period > 0)
|
||||||
{
|
{
|
||||||
tick = 0;
|
tick = 0;
|
||||||
|
/* Periods from last cycle
|
||||||
|
*/
|
||||||
|
for (i = my->period; i < my->numberOfPeriods; i++)
|
||||||
|
{
|
||||||
|
CInfo *info = &cperiods[i];
|
||||||
|
NSTimeInterval ti = info->tick + baseTime;
|
||||||
|
|
||||||
|
if (info->tick != tick)
|
||||||
|
{
|
||||||
|
tick = info->tick;
|
||||||
|
[m appendFormat: @"%u, %@\n", info->cnt,
|
||||||
|
[NSDate dateWithTimeIntervalSinceReferenceDate:
|
||||||
|
ti]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Periods from current cycle
|
||||||
|
*/
|
||||||
for (i = 0; i < my->period; i++)
|
for (i = 0; i < my->period; i++)
|
||||||
{
|
{
|
||||||
CInfo *info = &cperiods[i];
|
CInfo *info = &cperiods[i];
|
||||||
|
|
Loading…
Reference in a new issue