def stop():
os.write(BenchmarkProcess.BACKCHANNEL_OUT, BenchmarkProcess.STOP)<EOL>response = util.untilConcludes(os.read, BenchmarkProcess.BACKCHANNEL_IN, <NUM_LIT:1>)<EOL>if response != BenchmarkProcess.STOP:<EOL><INDENT>raise RuntimeError(<EOL>"<STR_LIT>" % (response,))<EOL><DEDENT>
Stop recording stats.  Call this from a benchmark script when the code you
want benchmarked has finished.  Call this exactly the same number of times
you call L{start} and only after calling it.

@raise RuntimeError: Raised if the parent process responds with anything
other than an acknowledgement of this message.