summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-09 20:51:19 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-09 20:51:19 (GMT)
commit659a60311d9c09a5fbedbfcfd54fd8d5ff1ce562 (patch)
treeae45a65e49edb5d788cf742a7e7cd0f367a6ce96 /Misc/NEWS
parent12b22ff6d70cde60c49721f1ba8b88f47a9b4343 (diff)
downloadcpython-659a60311d9c09a5fbedbfcfd54fd8d5ff1ce562.zip
cpython-659a60311d9c09a5fbedbfcfd54fd8d5ff1ce562.tar.gz
cpython-659a60311d9c09a5fbedbfcfd54fd8d5ff1ce562.tar.bz2
Allow the profiler's calibration constant to be specified in the constructor
call, or via setting an instance or class vrbl. Rewrote the calibration docs. Modern boxes are so friggin' fast, and a profiler event does so much work anyway, that the cost of looking up an instance vrbl (the bias constant) per profile event just isn't a big deal.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS13
1 files changed, 11 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 3da64a5..9dca9ce 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,8 +48,17 @@ Library
without losing information).
- Profile.calibrate() has a new implementation that should deliver
- a better system-specific calibration constant. Calibration must still
- be done manually (see the docs for the profile module).
+ a much better system-specific calibration constant. The constant can
+ now be specified in an instance constructor, or as a Profile class or
+ instance variable, instead of by editing profile.py's source code.
+ Calibration must still be done manually (see the docs for the profile
+ module).
+
+ Note that Profile.calibrate() must be overriden by subclasses.
+ Improving the accuracy required exploiting detailed knowledge of
+ profiler internals; the earlier method abstracted away the details
+ and measured a simplified model instead, but consequently computed
+ a constant too small by a factor of 2 on some modern machines.
- quopri's encode and decode methods take an optional header parameter,
which indicates whether output is intended for the header 'Q' encoding.