<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with profiling</title>
      <link>http://ask.metafilter.com/tags/profiling</link>
      <description>Questions tagged with 'profiling' at Ask MetaFilter.</description>
	  <pubDate>Tue, 04 Mar 2008 23:24:33 -0800</pubDate> <lastBuildDate>Tue, 04 Mar 2008 23:24:33 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>No time like the present</title>
	<link>http://ask.metafilter.com/85347/No%2Dtime%2Dlike%2Dthe%2Dpresent</link>	
	<description>I&apos;m interested in aspects of benchmarking with the help of UNIX&apos;s &lt;code&gt;time&lt;/code&gt;, specifically, what &lt;code&gt;user&lt;/code&gt;, &lt;code&gt;system&lt;/code&gt; and &lt;code&gt;elapsed&lt;/code&gt; times correspond to, within the functional context of the system and the tested application. I have a very rough idea what the results of &lt;i&gt;time&lt;/i&gt; point to in terms of CPU contention, with respect to the result of &lt;code&gt;elapsed&lt;/code&gt; time, if &lt;code&gt;elapsed&lt;/code&gt; is greater than the sum of &lt;code&gt;user&lt;/code&gt; and &lt;code&gt;system&lt;/code&gt; times.&lt;br&gt;
&lt;br&gt;
&#8226; What does it mean that &lt;code&gt;user&lt;/code&gt; makes &lt;i&gt;non-system calls&lt;/i&gt; (what are those calls?)&lt;br&gt;
&lt;br&gt;
&#8226; Likewise, what does it mean specifically that &lt;code&gt;system&lt;/code&gt; makes &lt;i&gt;system calls&lt;/i&gt; (what are those calls?)&lt;br&gt;
&lt;br&gt;
Would I use &lt;code&gt;user&lt;/code&gt; and &lt;code&gt;system&lt;/code&gt; mean times to establish how to guide function profiling, within an application?&lt;br&gt;
&lt;br&gt;
&#8226; What benchmarking results should I use as criteria for comparing one test result with another, all else the same? &lt;br&gt;
&lt;br&gt;
For example, let&apos;s say I run &lt;code&gt;sed -e &apos;s/+/-/&apos; inputdata&lt;/code&gt; on the same system, where different builds of &lt;code&gt;sed&lt;/code&gt; have been compiled with different optimization flags and compilers. &lt;br&gt;
&lt;br&gt;
&#8226;&#xa0;In this case, why would I choose the mean &lt;code&gt;user&lt;/code&gt; time over mean &lt;code&gt;system&lt;/code&gt; time as the criterium for comparing against like measurements of a &quot;baseline&quot; stock build of &lt;code&gt;sed&lt;/code&gt;?&lt;br&gt;
&lt;br&gt;
&#8226; Likewise, what are the caveats with choosing one measurement class over the other? (What are the downsides of using &lt;code&gt;user&lt;/code&gt; time? &lt;code&gt;system&lt;/code&gt; time? I suspect the answer to this will depend upon the calls made.)&lt;br&gt;
&lt;br&gt;
If you have pointers to literature (other than the thousands of &lt;code&gt;man&lt;/code&gt; pages on Google) I&apos;d be appreciative of that advice, as well. Thanks in advance.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.85347</guid>
	<pubDate>Tue, 04 Mar 2008 23:24:33 -0800</pubDate>
	<category>benchmark</category>
	<category>benchmarking</category>
	<category>measurement</category>
	<category>metric</category>
	<category>performance</category>
	<category>profiling</category>
	<category>sampling</category>
	<category>statistics</category>
	<category>time</category>
	<category>unix</category>
	<dc:creator>Blazecock Pileon</dc:creator>
	</item>
	<item>
	<title>What are my rights when being pulled over by the police for no reason?</title>
	<link>http://ask.metafilter.com/75021/What%2Dare%2Dmy%2Drights%2Dwhen%2Dbeing%2Dpulled%2Dover%2Dby%2Dthe%2Dpolice%2Dfor%2Dno%2Dreason</link>	
	<description>What are my rights when being pulled over by the police for no reason? On two separate occasions, over the past 2 months, I&apos;ve been pulled over by local police for no apparent reason.  Both times they&apos;ve asked for my license and registration, returned them to me after about 5-10 minutes, and let me go without any ticket/warning.  This past week my mother was pulled over in the same manner (different car).  She mentioned it to our neighbor, and he reported a similar incident.&lt;br&gt;
&lt;br&gt;
We live in an area of Philadelphia, PA that isn&apos;t too good, but that shouldn&apos;t be an excuse.  They should at least have a reason to pull me over before doing so.  I haven&apos;t asked any of the officers to explain themselves, because I fear the Dave Chappelle scenario (cop sprinkles crack on you).  Can anyone shed some light on what type of rights I have/what I can do about this?  Should I write a letter to the mayor?  Police commissioner?&lt;br&gt;
&lt;br&gt;
Thanks for your help.&lt;br&gt;
&lt;br&gt;
-- Just to clear up some potential racial profiling responses:&lt;br&gt;
&lt;br&gt;
-My mother and I are Hispanic, but don&apos;t necessarily look it.&lt;br&gt;
-My neighbor is African-American.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.75021</guid>
	<pubDate>Tue, 30 Oct 2007 10:13:57 -0800</pubDate>
	<category>cop</category>
	<category>driving</category>
	<category>law</category>
	<category>officer</category>
	<category>police</category>
	<category>profiling</category>
	<category>pullover</category>
	<category>rights</category>
	<category>ticket</category>
	<dc:creator>hcastro</dc:creator>
	</item>
	<item>
	<title>Hey man, is that a crowbar in your pocket or are you just glad to see me?</title>
	<link>http://ask.metafilter.com/70187/Hey%2Dman%2Dis%2Dthat%2Da%2Dcrowbar%2Din%2Dyour%2Dpocket%2Dor%2Dare%2Dyou%2Djust%2Dglad%2Dto%2Dsee%2Dme</link>	
	<description>I&apos;m Sikh, I&apos;m going to SF, I&apos;m (irrationally) scared... I&apos;m 28, a UK citizen and, ostensibly &lt;a href=&quot;http://en.wikipedia.org/wiki/Sikhism&quot;&gt;Sikh&lt;/a&gt;.  I wouldn&apos;t (in a million years) call myself a proper follower of my faith -- my beard is shaved BUT I do wear a modern style turban (kinda like this guy &lt;a href=&quot;http://pro.corbis.com/images/IS009-006.jpg?size=572&amp;uid={88660803-66a5-4a1f-a292-5bdf52911656}&quot;&gt;here&lt;/a&gt;).      I&apos;m traveling to SF in 2 weeks on work and I&apos;ll be there for 5 days or so.  It&apos;ll be my first trip to the USA and in many, many ways I&apos;m *really* looking forward to it. &lt;br&gt;
&lt;br&gt;
However, given the current socio-political climate I find myself feeling intimidated thinking about walking around the USA looking the way I do -- and am afraid for my personal safety.  I understand that part of this is complete irrational fear, but part of it is based on anecdotes from friends and family who have been there, as well as my own experiences in the UK.&lt;br&gt;
&lt;br&gt;
I also understand that by-and-large SF is probably one of the most liberal, cosmopolitan cities in the USA and most people will probably have a rough idea of who I am and where I&apos;m from.  I&apos;m just afraid of the uneducated buffoons.  So I was wondering, any hints or tips on (1) how to behave (2) places to avoid and (3) generally make my trip more pleasant?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.70187</guid>
	<pubDate>Mon, 27 Aug 2007 11:34:27 -0800</pubDate>
	<category>profiling</category>
	<category>racism</category>
	<category>sikh</category>
	<category>travel</category>
	<dc:creator>Anonymous</dc:creator>
	</item>
	<item>
	<title>How do you calculate the burden a bit of PHP is likely to put on the server?</title>
	<link>http://ask.metafilter.com/70068/How%2Ddo%2Dyou%2Dcalculate%2Dthe%2Dburden%2Da%2Dbit%2Dof%2DPHP%2Dis%2Dlikely%2Dto%2Dput%2Don%2Dthe%2Dserver</link>	
	<description>How do you calculate the burden a bit of code is likely to put on the server?  Extra points for free and easily understood. I&apos;m webmaster of a ~100 page site with every page containing a sidebar.  The sidebar has buttons on it which either link to that page if you&apos;re not on it or put a CSS class on the text if you are.&lt;br&gt;
&lt;br&gt;
I&apos;m in process of updating and streamlining the site.  I&apos;d like to remove the sidebar to (a new file) sidebar.php and use an include on all the other pages so that any time the sidebar changes I can change and reupload only one file rather than 100.&lt;br&gt;
&lt;br&gt;
I know this can be done in Javascript, but I&apos;d rather not.  I&apos;d like an option that works for *every* visitor, not simply the ones visiting in a Javascript-capable browser with Javascript turned on.&lt;br&gt;
&lt;br&gt;
The code I was thinking of was something like &lt;br&gt;
$here = $_SERVER[&apos;PHP_SELF&apos;];&lt;br&gt;
if ($here == &apos;/index.php&apos;)&lt;br&gt;
print &quot;&lt;span class=\&quot;here\&quot;&gt;Home&lt;/span&gt;&quot;;&lt;br&gt;
else&lt;br&gt;
print &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt;&quot;;&lt;br&gt;
&lt;br&gt;
It works, and I suspect it won&apos;t be a problem even though we have just a very basic hosting package and get about 5k page views a week.  (The math: 5,000 page hits a week * 10 if/thens = 50k if/thens/week = 7153 if/thens a day = 297 an hour = 5 a minute = most likely not a problem.)  But how do you know how much of that kind of access a host permits?  At what point does it get their attention and/or ire?&lt;br&gt;
&lt;br&gt;
Also, how do you calculate the burden of proposed code?  Where does one go for that information?  What do you do to make sure you&apos;re writing code that can handle a lot of traffic?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.70068</guid>
	<pubDate>Fri, 24 Aug 2007 22:06:27 -0800</pubDate>
	<category>bestpractices</category>
	<category>code</category>
	<category>codingprinciples</category>
	<category>hosting</category>
	<category>performanceanalysis</category>
	<category>php</category>
	<category>profiling</category>
	<category>server</category>
	<category>traffic</category>
	<dc:creator>Tuwa</dc:creator>
	</item>
	<item>
	<title>Tax Dollars at work?</title>
	<link>http://ask.metafilter.com/42628/Tax%2DDollars%2Dat%2Dwork</link>	
	<description>search: Can you help me find a citation?

There was an article or post, possibly a pdf, that is a template used by our wonderful homeland security et al, to track and monitor would be terrorist&apos;s, one of these criteria&apos;s were certain flag signals for them. Much like shooting rubber bands at planes, there was a article I ran across recently, and unfortunately didn&apos;t link it, having to do with, for example, &lt;a href=&quot;http://www.rider.edu/~suler/psycyber/&quot;&gt; The Psychology of Cyberspace&lt;/a&gt; it profiled the &quot;cyber terrorist&quot;, or some such; as I vaguely remember it described --with bullet points-- of a would be &quot;terrorist&quot;, one example was, &quot;anyone who spends more than 50 hours a week on the internet&quot;, among other ridiculous things, as set down by the FBI or some other alphabet agency. Can anyone help me find that citation? I would like to use it in a research paper I am working on.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.42628</guid>
	<pubDate>Fri, 21 Jul 2006 04:46:05 -0800</pubDate>
	<category>cyberspace</category>
	<category>FBI</category>
	<category>Profiling</category>
	<category>terrorists</category>
	<dc:creator>Unregistered User</dc:creator>
	</item>
	
	</channel>
</rss>

