ftp.nice.ch/pub/next/tools/performance/TimeMon.3.2.s.tar.gz#/TimeMon-3.2/Percentages.h

This is Percentages.h in view mode; [Download] [Up]

// Copyright 1991, 1994 Scott Hess.  Permission to use, copy,
// modify, and distribute this software and its documentation for
// any purpose and without fee is hereby granted, provided that
// this copyright notice appear in all copies.
// 
// Scott Hess makes no representations about the suitability of
// this software for any purpose.  It is provided "as is" without
// express or implied warranty.
//
#import <appkit/appkit.h>
#import <sys/dk.h>

typedef long CPUTime[ CPUSTATES];

@interface Percentages : View
{
    CPUTime *oldTimes;		// The array of collected CPU times for
				// the previous lagFactor+layerFactor^2
				// time slices.
    int laIndex;		// Index into the array of collected values.
    int laSize;			// lagFactor+layerFactor^2
    int lagFactor;		// How long to average for the inner circle.
    int layerFactor;		// The factor that differentiates layers.
    unsigned steps;		// Number of steps we've done.
    float pcents[ 3][ 3];	// Percentages for display.
    float lpcents[ 3][ 3];	// Last-displayed percentages.

    BOOL updateFlags[ 3];	// Which percentages to update.
    DPSTimedEntry te;		// The timed entry keeping us alive.
    id periodText;		// Period of the display.
    id lagText;			// Lag factore for the inner circle.
    id factorText;		// Factor between layers.
    id pauseMenuCell;		// To change when we pause/unpause.
    id colorFields;		// Fields that contain the color scheme.
    NXImage *stipple;		// Icon background color stipple for NS3.0.
}

    // Update as indicated by updateFlags.
- update;
    // Get new _cp_time and apply that data to percentages.
- step;
    // Hook into initialization process of app.
- appDidInit:sender;
    // Pull out timed entries and stuff.
- appWillTerminate:sender;

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.