<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_adp_stats</id>
	<title>Ns adp stats - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_adp_stats"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_adp_stats&amp;action=history"/>
	<updated>2026-04-25T17:57:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_adp_stats&amp;diff=2680&amp;oldid=prev</id>
		<title>WikiSysop: imported from WiKit id 873</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_adp_stats&amp;diff=2680&amp;oldid=prev"/>
		<updated>2004-06-15T03:00:49Z</updated>

		<summary type="html">&lt;p&gt;imported from WiKit id 873&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Man page: http://aolserver.com/docs/tcl/ns_adp_stats.html&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NAME'''&lt;br /&gt;
&lt;br /&gt;
: ns_adp_stats - Return statistics about cached ADP pages.&lt;br /&gt;
&lt;br /&gt;
'''SYNOPSIS'''&lt;br /&gt;
&lt;br /&gt;
: '''ns_adp_stats'''&lt;br /&gt;
&lt;br /&gt;
'''DESCRIPTION'''&lt;br /&gt;
&lt;br /&gt;
: 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:&lt;br /&gt;
* ''dev''&lt;br /&gt;
&lt;br /&gt;
: Drive number of the disk containing the file.&lt;br /&gt;
* ''ino''&lt;br /&gt;
&lt;br /&gt;
: 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.&lt;br /&gt;
* ''mtime''&lt;br /&gt;
&lt;br /&gt;
: Time the file was last modified, &lt;br /&gt;
* ''refcnt''&lt;br /&gt;
&lt;br /&gt;
: Reference Count, the adp will be removed from the cache if this reaches zero.&lt;br /&gt;
* ''evals''&lt;br /&gt;
&lt;br /&gt;
: Number of times this adp has been evaluated.&lt;br /&gt;
* ''size''&lt;br /&gt;
&lt;br /&gt;
: Size of the file in bytes.&lt;br /&gt;
* ''blocks''&lt;br /&gt;
&lt;br /&gt;
: Total number of blocks in the adp file, including html blocks and script blocks.&lt;br /&gt;
* ''scripts''&lt;br /&gt;
&lt;br /&gt;
: Number of script blocks in the adp file.&lt;br /&gt;
&lt;br /&gt;
'''EXAMPLES'''&lt;br /&gt;
&lt;br /&gt;
    % foreach {file stats} [[ns_adp_stats]] {&lt;br /&gt;
          append output &amp;quot;\nFILE: ${file}\n&amp;quot; &lt;br /&gt;
          foreach {key value} $stats {&lt;br /&gt;
              append output &amp;quot;    ${key} ==&amp;gt; ${value}\n&amp;quot;&lt;br /&gt;
          }&lt;br /&gt;
      }&lt;br /&gt;
      set output&lt;br /&gt;
&lt;br /&gt;
: See stats.tcl in the standard AOLserver distribution for a more complicated example.&lt;br /&gt;
&lt;br /&gt;
'''NOTES'''&lt;br /&gt;
&lt;br /&gt;
: 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 AOLserver on Windows. [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__stat.2c_._wstat.2c_._stati64.2c_._wstati64.asp]&lt;br /&gt;
&lt;br /&gt;
'''SEE ALSO'''&lt;br /&gt;
&lt;br /&gt;
: [[ns_adp_abort]], [[ns_adp_append]], [[ns_adp_argc]], [[ns_adp_argv]], [[ns_adp_bind_args]], [[ns_adp_break]], [[ns_adp_debug]], [[ns_adp_debuginit]], [[ns_adp_dir]], [[ns_adp_dump]], [[ns_adp_eval]], [[ns_adp_exception]], [[ns_adp_include]], [[ns_adp_mime]], [[ns_adp_mimetype]], [[ns_adp_parse]], [[ns_adp_puts]], [[ns_adp_registeradp]], [[ns_adp_registerproc]], [[ns_adp_registertag]], [[ns_adp_return]], [[ns_adp_safeeval]], [[ns_adp_stream]], [[ns_adp_tell]], [[ns_adp_trunc]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Category Documentation]] - [[Category Core Tcl API]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>