<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>If you have devel, you could probably scan the query log for a close guess. As for the "launch a missle" scenario, consider simple things like Throttle, which will disable certain things - possibly even your monitoring.<BR> </DIV>
<P><FONT color=#ff007f size=4 face="bookman old style, new york, times, serif"><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> James Benstead <james.benstead@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sun, January 9, 2011 3:36:27 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] An automated way of locating unused modules?<BR></FONT><BR>
<DIV>Thanks Gábor, that answers my question - looks like it might be an interesting and potentially useful project; I'll post back if and when I get some time to work on it.</DIV><BR clear=all>--Jim<BR>--<BR>My IM and Skype details are at http://state68.com/contact<BR><BR><BR>
<DIV class=gmail_quote>On 9 January 2011 20:18, Gábor Hojtsy <SPAN dir=ltr><<A href="mailto:gabor@hojtsy.hu" rel=nofollow target=_blank ymailto="mailto:gabor@hojtsy.hu">gabor@hojtsy.hu</A>></SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV class=im>On Sun, Jan 9, 2011 at 8:58 PM, James Benstead <<A href="mailto:james.benstead@gmail.com" rel=nofollow target=_blank ymailto="mailto:james.benstead@gmail.com">james.benstead@gmail.com</A>> wrote:<BR>> Although I agree with Carl that this is an administrative rather than a<BR>> technical issue, I think that the module I have in mind would still be<BR>> useful for site auditing purposes: for example, when taking over a site that<BR>> has been put together by another Drupal shop.<BR>> Assuming that such a module would be desirable, the question remains: would<BR>> it be technically possible to build such a module?<BR><BR></DIV>It is probably technically possible to write monitoring which gets to<BR>**a close guess**. Whether a module is used or not can only be<BR>determined in runtime environments. You can monitor the use of modules<BR>(eg. inclusion of their files, last access time of their include<BR>files, use of the
module's strings for translation, etc.).<BR><BR>However, assume a module's job is to launch a missile in case of<BR>nuclear attack. That module will not be used / useful until a nuclear<BR>attack happens, but then its value would be essential. So you can<BR>monitor its use but whether in the given time sample the module should<BR>have done something or not depends on its role. (Replace missile<BR>example with sending mail notifications only under certain rare<BR>circumstances, automated blocking of spammers on the site, things that<BR>kick in when on high load, things that kick in when running site<BR>updates but not on the runtime site, etc).<BR><FONT color=#888888><BR>Gábor<BR></FONT></BLOCKQUOTE></DIV><BR></DIV></DIV></div></body></html>