What module can profile where a Python program spends time?
-
A
profiler_ext
-
B
timeit only
-
C
cProfile
Correct answer
-
D
debugpy
Correct answer
C. cProfile
5 views
Explanation
cProfile reports function-level timing.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ