Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Fixed bug where time taken by recursive calls are added to the cumulative time. #142

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

trss
Copy link

@trss trss commented May 14, 2015

The time taken by recursive calls to a function are added to the cumulative time of the outermost call to that function. Thus, the final cumulative time value for that function exceeds the time spent in that function. This change fixes that problem.

Edit:
Note: The "cumulative time" terminology is from cProfile. What I mean by that is simply the total time spent inside the function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant