Anonymous avatar Anonymous committed adeea85

reindex.pl prints memory/time info per tag file

Comments (0)

Files changed (3)

+2008-04-02 Nir Amram <Nir.Amram@cern.ch>
+        * reindex.pl prints memory/time info per tag file
+	* Tagging AtlasDoxygen-00-02-24
+
 2008-10-06 Emil Obreshkov <Emil.Obreshkov@cern.ch>
         * scripts/pageClassExtraction.xsl - updates from Kevin
 

scripts/globalDoxySearch.php

 <small><FONT COLOR=BBBBBB><i>Search index generated on ".date("D M d H:i:s Y.",filemtime('globsearch.idx'))."</i></FONT></small></address>\n";
 ?>
 
-<h1><FONT COLOR=#BB3333>Doxygen Global Search<FONT COLOR=GREEN SIZE=1> [Beta]</FONT></FONT></h1>
+<h1><FONT COLOR=#BB3333>Doxygen Global Search</FONT></h1>
 
 <form action="globalDoxySearch.php" method="get">
   <table cellspacing="0" cellpadding="0" border="0" width=100%>
     <tr>
-      <td width=30%></td>
-      <td><label><FONT SIZE=+1>&nbsp;S<u>e</u>arch&nbsp;for&nbsp;</FONT></label>
+      <td width=20%></td>
+      <td align=right><label><FONT SIZE=+1>&nbsp;S<u>e</u>arch&nbsp;for&nbsp;</FONT></label>
       </td>
 
 <?php set_time_limit(0); 
   $ccheck=$filters["class"]?"checked":"";
   $mcheck=$filters["method"]?"checked":"";
   $tcheck=$filters["title"]?"checked":"";
-  echo "<td width=32%><input type=\"text\" name=\"query\" value=\"$value\" size=\"40\" accesskey=\"e\"/>
+  echo "<td width=340><input type=\"text\" name=\"query\" value=\"$value\" size=\"40\" accesskey=\"e\"/>
             <input type=submit accesskey=\"a\" value=\"Search\"> </td>
         <td width=15%><!--<B>Filters:</B><BR>-->
             <input type=checkbox name=fpackage accesskey=P $pcheck><u>P</u>ackage only<BR>

scripts/reindex.pl

 $count = 0;
 for my $infilename (@infilenameArr)
 {# Begin loop over infiles
-    print "Opening input file: $infilename\n";
+    my $fileTime = `date`;
+    chomp $fileTime;
+    my $meminfo = `cat /proc/meminfo`;
+    my %mem;
+    ($mem{MemFree})  = $meminfo=~/MemFree:\s*(\d+)/;
+    ($mem{MemTotal}) = $meminfo=~/MemTotal:\s*(\d+)/;
+    ($mem{SwapFree}) = $meminfo=~/SwapFree:\s*(\d+)/;
+    ($mem{SwapTotal}) = $meminfo=~/SwapTotal:\s*(\d+)/;
+    my $memLine = "Mem: $mem{MemFree}/$mem{MemTotal}, Swap: $mem{SwapFree}/$mem{SwapTotal}";
+#    my $memInfo = `cat /proc/meminfo | perl -ne '/MemFree:\ *([0-9]+\ kB)/ && print "$1\n"; /SwapFree:\ *([0-9]+\ kB)/ && print "$1\n"; ' | paste - -`;
+    print "$fileTime, $memLine: Opening input file: $infilename\n";
     next if (-z $infilename); #If the file is empty, skip it
 
     open(my $infile, "<", $infilename) || die("Can't open infile: $!");
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.