开发者

Any tool to log the execution path of a program? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何转开发

Closed 3 years ago.

Improve this question

Is there any tool to log the execution path of functions that a program goes through? I know gdb can show the backtrace at a particular point. But I want to see the whole story of a program. For instance:

int main(){
    a();
    b();
}
void a(){
    c();
}

The tool gives out something like:

a-----
  c------
b------


gcc itself can do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜