ns_adp_stats - Return statistics about cached ADP pages
Returns statistics about ADP pages that have been cached. The result is a list of lists, where each sublist contains 2 items: File, Statistics. File is the complete path in the file system to a cached adp file, Statistics is a list containing statistics about that cached file in a format similar to Tcl's array get format. Currently, the keys in Statistics are:
Drive number of the disk containing the file.
Number of the information node (the inode) for the file. The inode describes the file date and time stamps, permissions, and content on UNIX file systems.
Time the file was last modified,
Reference Count, the adp will be removed from the cache if this reaches zero.
Number of times this adp has been evaluated.
Size of the file in bytes.
Total number of blocks in the adp file, including html blocks and script blocks.
Number of script blocks in the adp file.
% foreach {file stats} <strong>ns_adp_stats</strong> { append output "\nFILE: ${file}\n" foreach {key value} $stats { append output " ${key} ==> ${value}\n" } } set output
See stats.tcl in the standard NaviServer distribution for a more complicated example.
NOTES On the Windows platform, adp filenames are used as Hash table keys instead of dev and ino, so dev and ino will always be reported as 0 when running NaviServer on Windows.