Example Context inspect 001




This example returns the statistical and sytem inofrmation as specified by the arguments to the inspect function.



The object to be inspected.

(setq s (new String: "Hello there you all")) Returns: Hello there you all

The index for the specified object is returned.

(inspect s) Returns: 163051

An Lambda is defined.

(defun foo(n) (++ n)) Returns: #<Lambda 123456>

The index for the specified object is returned.

(inspect foo) Returns: 123456

The statistical information of the object is returned in the form of the Vector.

(inspect true) Returns: #<Vector 123456>

The contents of the Vector:

(display #<Vector 123456>) Returns: #("Memory Block Count = 51584" "Used Memory Bytes = 19613512" "Blocked Block Count = 0" "Blocked Memory Bytes = 0" "Free Block Count = 1055" "Free Block Bytes = 80208664" "Free User Bytes = 80183112" "System Check Count = 1" "Block Join Count = 185837" "Block Split Count = 238484" "Memory Copy Count = 0" "Block Count = 185550" "Free List Hit Count = 14597" "Larger Frame Free List Hit Count = 232765" "Used Object Count = 47593" "Free Object Index = 162956" "New Block Function Time = 0" "Free Block Function Time = 0" "Resize Block Function Time = 0" "Garbage Switch = true" )


Related Examples

Here are examples of the inspect function at work.

Context inspect 001 ObjectRepository inspect 002


Function Links

Here is the link to the current function used in this example.


Here are a number of links to other related functions.



Argument Types

Here are the links to the data types of the arguments used in this example.

Lambda Context

Here are a number of links to examples having similar argument types.

Context clear 001 Context debug 001 Context debugBrowsableProcs 001 Context disassemble 001
Context evalInSyncLocalContext 001 Context getGlobalValue 001 Context getSymbolTable 001 Context globalBinding 001
Context inspect 001 Context loadWorkspace 001 Context loadWorkspace 002 Context preAllocateFixedMemoryBlocks 001
Context reset 001 Context saveWorkspace 001 Context systemCheck 001 Context version 001
ObjectRepository detachLibrarian 001 ObjectRepository refLibrarian 001

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.