How to record the running information of functions in your program?
guys! Recently,i attend a coding interview.And I was asked a question
which i don't know. After searching the answer on the internet for a few
day, I come here call for help. The question is described as followed: You
should propose a approach to record the running information of function in
your program,for example,the times of a function called,and so on. By the
way, you are not allowed to modify these functions.Maybe you want to
define a global variant in these function to record the running
function,but that is not allowed.
Ok! That's all about the question i met in a coding interview.
No comments:
Post a Comment