summaryrefslogtreecommitdiff
path: root/coverage/ctracer
Commit message (Collapse)AuthorAgeFilesLines
* fix: COLLECT_STATS crash due to wrong BuildValue formatNed Batchelder2022-06-111-1/+1
| | | | This should have been part of 80211966 from 2021-10-18.
* Use `PyCode_GetCode`Dennis Sweeney2022-06-061-1/+4
|
* perf: set frame->f_trace_lines=0 when not tracing. ~3% fasterNed Batchelder2022-05-281-0/+1
|
* fix: fix compilation errors on latest 3.11.0Ned Batchelder2022-05-122-9/+30
|
* debug: incidental debug improvements in tracer.cNed Batchelder2022-05-121-6/+9
|
* fix: proper tracing of call/return for Python 3.11.0a4Ned Batchelder2022-01-151-9/+40
| | | | | Version 3.11.0a4 introduced RESUME, so returns and calls are different now. This change also fixes some mishandling of yield-from in previous releases.
* fix: CPython 3.11 support. #1241Ned Batchelder2021-11-101-1/+7
| | | | | | | | | | | The fix for CTracer is egregious and will need to be updated when there's a supported way to do it. The fullcoverage skip is noted in https://github.com/nedbat/coveragepy/issues/1278 The raise_through_with skip is noted in https://github.com/nedbat/coveragepy/issues/1270
* style: make these macros more bullet-proofNed Batchelder2021-11-102-5/+5
|
* refactor: no need for specialized pyexpat code anymoreNed Batchelder2021-10-183-85/+0
| | | | | | | | The pyexpat bug that plagued us was fixed in Python 3.4: https://bugs.python.org/issue22462 We no longer need the code that adapted to it. The test will remain, couldn't hurt.
* perf: reduce the overhead of recording branchesNed Batchelder2021-10-142-7/+28
|
* refactor: use sets to collect dataNed Batchelder2021-08-153-9/+8
| | | | | | | Coverage.py predates sets as a built-in data structure, so the file data collection has long been dicts with None as the values. Sets are available to us now (since Python 2.4 in 2004, which coverage.py dropped support for in 2014!), we use sets.
* debug: improved logging in tracer.cNed Batchelder2021-08-091-13/+14
|
* refactor: Python 3.9 added an accessor for frame->f_codeNed Batchelder2021-07-082-11/+18
| | | | This accessor is now required in 3.11, so let's use it.
* refactor: get rid of My* version shims we don't need anymoreNed Batchelder2021-05-033-39/+19
|
* refactor: remove unneeded Py2 C codeNed Batchelder2021-05-022-59/+0
|
* fix: adapt to 3.10.0a7's f_lasti fieldNed Batchelder2021-04-112-1/+9
|
* Use the supported way to get a C frame's linenoNed Batchelder2021-01-101-10/+10
| | | | See https://bugs.python.org/issue42823 for discussion.
* Move disable_plugin to PythonNed Batchelder2020-09-132-47/+10
|
* Fix a missed exception handling for bad pluginsNed Batchelder2020-09-131-1/+2
|
* Revert "Remove a copy of a private macro, and just use it" #809Ned Batchelder2019-07-062-1/+9
| | | | This reverts commit b777c96f885b8d91b5339940a31a6a8ec4bfa3f9.
* Remove a copy of a private macro, and just use itNed Batchelder2019-04-072-9/+1
|
* Dynamic contextsNed Batchelder2018-09-232-3/+5
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-249-9/+9
|
* A new kind of plug-in: configurers. #563Ned Batchelder2018-01-061-2/+2
|
* FIX always remove the callback from the callback itselfOlivier Grisel2017-09-041-1/+4
| | | | | --HG-- branch : fix-thread-safety
* FIX thread-safe Collector.save_data()Olivier Grisel2017-08-101-0/+8
| | | | | --HG-- branch : fix-thread-safety
* Update URLs so link-checker doesn't spew red.Ned Batchelder2017-06-141-2/+2
|
* Properly round-trip the trace function even when not measuring coverage. #575Ned Batchelder2017-05-022-3/+12
|
* Collecting continues after saving data. #79 #448Ned Batchelder2017-03-032-2/+28
|
* Fix a little EnglishNed Batchelder2017-03-031-1/+1
|
* Simplify stack management in CTracerNed Batchelder2017-03-034-41/+50
| | | | | | | "file_data" used to be borrowed from data, but that was confusing. Now it's owned. We used to have a struct member which was a copy of the current stack entry. That just made it harder to reason about reference counting. Now we have a pointer to the entry on the stack.
* Prevent a hard crash when starting coverage thousands of timesNed Batchelder2016-12-291-0/+1
|
* A better name for a statNed Batchelder2016-11-122-4/+4
|
* Allow for the possibility of null-testingNed Batchelder2016-11-122-0/+9
|
* A macro for extreme debugging.Ned Batchelder2016-11-121-0/+3
|
* Entry arcs now use the negative first line of the code object instead of -1.Ned Batchelder2016-03-021-1/+6
|
* Make a BOOL type for the C code.Ned Batchelder2016-01-304-4/+5
|
* Merged who-tests-what-170Ned Batchelder2016-01-305-6/+76
|\
| * Clean up WTW so that it is safe to mergeNed Batchelder2016-01-302-4/+2
| |
| * Fix a bad variableNed Batchelder2016-01-301-1/+1
| |
| * WIP: record contexts for who tests whatNed Batchelder2015-11-145-2/+70
| |
| * TRUE and FALSE for booleansNed Batchelder2015-11-142-4/+8
| |
* | Clean up in the C codeNed Batchelder2016-01-302-26/+23
| |
* | If STATS is enabled, all STATS() have to be after declarationsNed Batchelder2015-11-241-1/+1
| |
* | Possible fix for #445 and #420Ned Batchelder2015-11-211-13/+16
|/ | | | | The line that seems to break #445 is the import of weakref, even if we never use it. Delaying the import until we need it seems to fix #445.
* Fix a C declarationNed Batchelder2015-11-011-1/+2
|
* whitespace...Ned Batchelder2015-11-011-2/+2
|
* Fix settrace(py_func). #436.Ned Batchelder2015-11-011-8/+33
|
* No more speed penalty for settrace(gettrace()). #397.Ned Batchelder2015-10-031-0/+4
|
* Quiet some C compiler warnings.Ned Batchelder2015-08-302-4/+5
|