diff options
author | Michael W. Hudson <mwh@python.net> | 2002-09-11 15:36:32 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-09-11 15:36:32 (GMT) |
commit | 02ff6a99522bf0c734831841661ebd385ae8c417 (patch) | |
tree | fdb0a6ffa6b397e39fe09f03bee05fa8a650eb0b /Modules/_hotshot.c | |
parent | 519a342d799a0222ca5290d152ee97d7818a9493 (diff) | |
download | cpython-02ff6a99522bf0c734831841661ebd385ae8c417.zip cpython-02ff6a99522bf0c734831841661ebd385ae8c417.tar.gz cpython-02ff6a99522bf0c734831841661ebd385ae8c417.tar.bz2 |
A slight change to SET_LINENO-less tracing.
This makes things a touch more like 2.2. Read the comments in
Python/ceval.c for more details.
Diffstat (limited to 'Modules/_hotshot.c')
-rw-r--r-- | Modules/_hotshot.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index 2ca4486..e12e5e5 100644 --- a/Modules/_hotshot.c +++ b/Modules/_hotshot.c @@ -888,12 +888,10 @@ tracer_callback(ProfilerObject *self, PyFrameObject *frame, int what, case PyTrace_LINE: if (self->linetimings) - return pack_lineno_tdelta(self, PyCode_Addr2Line(frame->f_code, - frame->f_lasti), + return pack_lineno_tdelta(self, frame->f_lineno), get_tdelta(self)); else - return pack_lineno(self, PyCode_Addr2Line(frame->f_code, - frame->f_lasti)); + return pack_lineno(self, frame->f_lineno); default: /* ignore PyTrace_EXCEPTION */ |