diff options
-rw-r--r-- | coverage/ctracer/stats.h | 2 | ||||
-rw-r--r-- | coverage/ctracer/tracer.c | 6 | ||||
-rw-r--r-- | perf/stress_test.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/coverage/ctracer/stats.h b/coverage/ctracer/stats.h index a72117cf..c5ffdf5f 100644 --- a/coverage/ctracer/stats.h +++ b/coverage/ctracer/stats.h @@ -19,7 +19,7 @@ typedef struct Stats { unsigned int returns; unsigned int exceptions; unsigned int others; - unsigned int new_files; + unsigned int files; unsigned int missed_returns; unsigned int stack_reallocs; unsigned int errors; diff --git a/coverage/ctracer/tracer.c b/coverage/ctracer/tracer.c index bfaa74ea..8abb60a7 100644 --- a/coverage/ctracer/tracer.c +++ b/coverage/ctracer/tracer.c @@ -393,7 +393,7 @@ CTracer_handle_call(CTracer *self, PyFrameObject *frame) if (PyErr_Occurred()) { goto error; } - STATS( self->stats.new_files++; ) + STATS( self->stats.files++; ) /* We've never considered this file before. */ /* Ask should_trace about it. */ @@ -474,7 +474,7 @@ CTracer_handle_call(CTracer *self, PyFrameObject *frame) if (PyErr_Occurred()) { goto error; } - STATS( self->stats.new_files++; ) + STATS( self->stats.files++; ) STATS( self->stats.pycalls++; ) should_include_bool = PyObject_CallFunctionObjArgs(self->check_include, tracename, frame, NULL); if (should_include_bool == NULL) { @@ -1040,7 +1040,7 @@ CTracer_get_stats(CTracer *self) "returns", self->stats.returns, "exceptions", self->stats.exceptions, "others", self->stats.others, - "new_files", self->stats.new_files, + "files", self->stats.files, "missed_returns", self->stats.missed_returns, "stack_reallocs", self->stats.stack_reallocs, "stack_alloc", self->pdata_stack->alloc, diff --git a/perf/stress_test.py b/perf/stress_test.py index 8c75392f..a32f313a 100644 --- a/perf/stress_test.py +++ b/perf/stress_test.py @@ -83,10 +83,10 @@ class StressTest(CoverageTest): ) if stats is not None: - assert actual_file_count == stats['new_files'] + assert actual_file_count == stats['files'] assert actual_call_count == stats['calls'] assert actual_line_count == stats['lines'] - print("File counts", file_count, actual_file_count, stats['new_files']) + print("File counts", file_count, actual_file_count, stats['files']) print("Call counts", call_count, actual_call_count, stats['calls']) print("Line counts", line_count, actual_line_count, stats['lines']) print() |