Ticket #20 (new enhancement)
Opened 3 months ago
Speed up trace by a lot
| Reported by: | kurgan@… | Owned by: | gak |
|---|---|---|---|
| Priority: | major | Component: | general |
| Version: | Keywords: | ||
| Cc: |
Description
If you replace all sys.settrace(tracer) calls with sys.setprofile(tracer) and ignore the first return event in the tracer. Running a script will be dramatically faster.
(setprofile only logs call and return events, where settrace will also call the tracer function for each line that is interpreted)
You might also want to react on c_call and c_return events (logging extension modules)
Attachments
Note: See
TracTickets for help on using
tickets.