dbstats.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "cursor.h"
#include "font.h"
#include "kb.h"
#include "quickdraw.h"
#include "resources.h"
#include "strings.h"
#include "frontierwindows.h"
#include "shell.h"
#include "db.h"
#include "dbinternal.h"

Include dependency graph for dbstats.c:

Go to the source code of this file.

Data Structures

struct  tystatsrecord

Defines

#define idstatsstringlist   140

Typedefs

typedef tystatsrecordptrstatsrecord
typedef tystatsrecord ** hdlstatsrecord

Enumerations

enum  {
  idwindowtitle = 1, idnodesinreleaselist, idbytesinreleaselist, idnodesinavaillist,
  idbytesinavaillist, idlargestfreenode, idnumberinconsistent, idnodesfreesequentially,
  idbytesfreesequentially, idnodesusedsequentially, idbytesusedsequentially, idnodesusedlogically,
  idbytesusedlogically, idnumberbytesorphaned, idreadheaderfailed, idreadusedheaderfailed,
  idfreeblockinuse, idreadavailnodefailed, idgeteoffailed, idreadheaderfailed1,
  idreadtrailerfailed2, idheadertrailerdisagree, idavailshadowoutofsynch
}

Functions

static void getstatsstring (short id, bigstring bs)
static void setstatsmessage (short id)
static void statsline (bigstring bs)
static void statsdisplay (short idstat, long n)
static void statsupdate (void)
static boolean statscountreleasestack (long *ctreleasenodes, long *ctreleasebytes)
boolean statsblockinuse (dbaddress adr, bigstring bsitem)
static boolean statscompute (boolean flincludeusedblocks)
static boolean statsdispose (void)
static boolean statsmousedown (Point pt, tyclickflags flags)
boolean statsstart (void)
static boolean statsfindwindow (void)
static boolean statsnewwindow (void)
boolean dbstatsmessage (hdldatabaserecord hdb, boolean flincludeusedblocks)

Variables

static WindowPtr statswindow = nil
static hdlwindowinfo statswindowinfo = nil
static hdlstatsrecord statsdata = nil


Define Documentation

#define idstatsstringlist   140
 

Definition at line 45 of file dbstats.c.

Referenced by getstatsstring().


Typedef Documentation

typedef struct tystatsrecord ** hdlstatsrecord
 

typedef struct tystatsrecord * ptrstatsrecord
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
idwindowtitle 
idnodesinreleaselist 
idbytesinreleaselist 
idnodesinavaillist 
idbytesinavaillist 
idlargestfreenode 
idnumberinconsistent 
idnodesfreesequentially 
idbytesfreesequentially 
idnodesusedsequentially 
idbytesusedsequentially 
idnodesusedlogically 
idbytesusedlogically 
idnumberbytesorphaned 
idreadheaderfailed 
idreadusedheaderfailed 
idfreeblockinuse 
idreadavailnodefailed 
idgeteoffailed 
idreadheaderfailed1 
idreadtrailerfailed2 
idheadertrailerdisagree 
idavailshadowoutofsynch 

Definition at line 48 of file dbstats.c.


Function Documentation

boolean dbstatsmessage hdldatabaserecord  hdb,
boolean  flincludeusedblocks
 

Definition at line 676 of file dbstats.c.

References dbpopdatabase(), dbpushdatabase(), nil, optionkeydown(), shellpopglobals(), shellpushglobals(), smashrect(), statscompute(), statsfindwindow(), statsnewwindow(), statswindow, and windowbringtofront().

Referenced by windowfunctionvalue().

Here is the call graph for this function:

static void getstatsstring short  id,
bigstring  bs
[static]
 

Definition at line 111 of file dbstats.c.

References getstringlist(), and idstatsstringlist.

Referenced by setstatsmessage(), statsdisplay(), and statsnewwindow().

Here is the call graph for this function:

static void setstatsmessage short  id  )  [static]
 

Definition at line 117 of file dbstats.c.

References bigstring, copystring(), and getstatsstring().

Referenced by statsblockinuse(), statscompute(), and statscountreleasestack().

Here is the call graph for this function:

boolean statsblockinuse dbaddress  adr,
bigstring  bsitem
 

Definition at line 296 of file dbstats.c.

References dbreadheader(), idfreeblockinuse, idreadusedheaderfailed, keyboardescape(), nildbaddress, setstatsmessage(), and statsdata.

Referenced by ccfindusedblocks(), findusedblocksvisit(), langexternalfindusedblocks(), mefindusedblocksvisit(), menuverbfindusedblocks(), statscompute(), and tableverbfindusedblocks().

Here is the call graph for this function:

static boolean statscompute boolean  flincludeusedblocks  )  [static]
 

Definition at line 348 of file dbstats.c.

References clearhandle(), dbgeteof(), dbreadavailnode(), dbreadheader(), dbreadtrailer(), tyshellglobals::findusedblocksroutine, firstphysicaladdress, idavailshadowoutofsynch, idgeteoffailed, idheadertrailerdisagree, idreadavailnodefailed, idreadheaderfailed1, idreadtrailerfailed2, initbeachball(), keyboardescape(), left, nil, nildbaddress, right, rollbeachball(), setstatsmessage(), shellglobals, shellpopglobals(), shellpushrootglobals(), sizeheader, sizetrailer, statsblockinuse(), statscountreleasestack(), statsdata, statsupdate(), and statswindow.

Referenced by dbstatsmessage().

Here is the call graph for this function:

static boolean statscountreleasestack long ctreleasenodes,
long ctreleasebytes
[static]
 

Definition at line 227 of file dbstats.c.

References ct, dbreadheader(), gethandlesize(), h, idreadheaderfailed, nil, rollbeachball(), and setstatsmessage().

Referenced by statscompute().

Here is the call graph for this function:

static void statsdisplay short  idstat,
long  n
[static]
 

Definition at line 146 of file dbstats.c.

References bigstring, getstatsstring(), pushlong(), pushstring(), and statsline().

Referenced by statsupdate().

Here is the call graph for this function:

static boolean statsdispose void   )  [static]
 

Definition at line 554 of file dbstats.c.

References disposehandle(), and statsdata.

Referenced by statsstart().

Here is the call graph for this function:

static boolean statsfindwindow void   )  [static]
 

Definition at line 610 of file dbstats.c.

References fl, idstatsconfig, shellfindwindow(), statsdata, statswindow, and statswindowinfo.

Referenced by dbstatsmessage().

Here is the call graph for this function:

static void statsline bigstring  bs  )  [static]
 

Definition at line 127 of file dbstats.c.

References movepento(), nil, pendrawstring(), statsdata, and statswindow.

Referenced by statsdisplay(), and statsupdate().

Here is the call graph for this function:

static boolean statsmousedown Point  pt,
tyclickflags  flags
[static]
 

Definition at line 562 of file dbstats.c.

Referenced by statsstart().

static boolean statsnewwindow void   )  [static]
 

Definition at line 624 of file dbstats.c.

References bigstring, disposehandle(), getstatsstring(), getwindowinfo(), idstatsconfig, idwindowtitle, newchildwindow(), newclearhandle(), shellgetfrontrootinfo(), shellgetwindowcenter(), statswindow, and windowzoom().

Referenced by dbstatsmessage().

Here is the call graph for this function:

boolean statsstart void   ) 
 

Definition at line 576 of file dbstats.c.

References idstatsconfig, loadconfigresource(), shellnewcallbacks(), statsdata, statsdispose(), statsmousedown(), statsupdate(), statswindow, and statswindowinfo.

Referenced by frontierstart().

Here is the call graph for this function:

static void statsupdate void   )  [static]
 

Definition at line 160 of file dbstats.c.

References tyFontInfo::ascent, tyFontInfo::descent, eraserect(), globalfontinfo, idbytesfreesequentially, idbytesinavaillist, idbytesinreleaselist, idbytesusedlogically, idbytesusedsequentially, idlargestfreenode, idnodesfreesequentially, idnodesinavaillist, idnodesinreleaselist, idnodesusedlogically, idnodesusedsequentially, idnumberbytesorphaned, idnumberinconsistent, popstyle(), pushstyle(), r, statsdata, statsdisplay(), statsline(), statswindowinfo, and zerostring.

Referenced by statscompute(), and statsstart().

Here is the call graph for this function:


Variable Documentation

hdlstatsrecord statsdata = nil [static]
 

Definition at line 106 of file dbstats.c.

Referenced by statsblockinuse(), statscompute(), statsdispose(), statsfindwindow(), statsline(), statsstart(), and statsupdate().

WindowPtr statswindow = nil [static]
 

Definition at line 102 of file dbstats.c.

Referenced by dbstatsmessage(), landisstatswindow(), statscompute(), statsfindwindow(), statsline(), statsnewwindow(), and statsstart().

hdlwindowinfo statswindowinfo = nil [static]
 

Definition at line 104 of file dbstats.c.

Referenced by statsfindwindow(), statsstart(), and statsupdate().


Generated on Thu Jun 1 05:22:07 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6