call-graph

Call graphs in Soot

帅比萌擦擦* 提交于 2021-02-07 09:49:45
问题 How do I use SOOT to build at Call graph? Or are there any better programs for this? I have been sent around the same five pages looking for answers and I can't find what I am looking for. There are also a problem with the plugin version to Eclipse. It is installed correct but I cant choose it when I want to run the code. 回答1: Small modification to previous answer private static void visit(CallGraph cg, SootMethod method) { String identifier = method.getSignature(); visited.put(method

Filter calls to libc from valgrind's callgrind output

时间秒杀一切 提交于 2020-08-22 06:16:46
问题 I'm trying to generate a call graph for a server for documentation purposes. Not for any kind of profiling. I generated the output with: sudo valgrind --tool=callgrind --dump-instr=yes /opt/ats-trunk/bin/traffic_server and converted with: http://code.google.com/p/jrfonseca/wiki/Gprof2Dot to a .dot file, but this contains way too much info to be useful as documentation. I would like to filter out the calls to libraries such as libc, libstdc++, libtcl, libhwloc and whatnot. n.b.: I've been

Print complete control flow through gdb including values of variables

心不动则不痛 提交于 2020-01-12 10:11:20
问题 The idea is that given a specific input to the program, somehow I want to automatically step-in through the complete program and dump its control flow along with all the data being used like classes and their variables. Is their a straightforward way to do this? Or can this be done by some scripting over gdb or does it require modification in gdb? Ok the reason for this question is because of an idea regarding a debugging tool. What it does is this. Given two different inputs to a program,

Print complete control flow through gdb including values of variables

拟墨画扇 提交于 2020-01-12 10:10:29
问题 The idea is that given a specific input to the program, somehow I want to automatically step-in through the complete program and dump its control flow along with all the data being used like classes and their variables. Is their a straightforward way to do this? Or can this be done by some scripting over gdb or does it require modification in gdb? Ok the reason for this question is because of an idea regarding a debugging tool. What it does is this. Given two different inputs to a program,

Print complete control flow through gdb including values of variables

旧城冷巷雨未停 提交于 2020-01-12 10:10:09
问题 The idea is that given a specific input to the program, somehow I want to automatically step-in through the complete program and dump its control flow along with all the data being used like classes and their variables. Is their a straightforward way to do this? Or can this be done by some scripting over gdb or does it require modification in gdb? Ok the reason for this question is because of an idea regarding a debugging tool. What it does is this. Given two different inputs to a program,

Print complete control flow through gdb including values of variables

我们两清 提交于 2020-01-12 10:10:04
问题 The idea is that given a specific input to the program, somehow I want to automatically step-in through the complete program and dump its control flow along with all the data being used like classes and their variables. Is their a straightforward way to do this? Or can this be done by some scripting over gdb or does it require modification in gdb? Ok the reason for this question is because of an idea regarding a debugging tool. What it does is this. Given two different inputs to a program,

Generating a Call Graph in R

坚强是说给别人听的谎言 提交于 2020-01-09 04:38:13
问题 I've been given a big chunk of poorly formatted monolithic R code with plenty of functions, and I'd like to work out what functions call what functions. I thought I could use roxygen's @callGraph stuff, but a) the code needs to be in a package, which will be a headache with this code, and b) it doesn't even seem to work when I do run it on a simple package of mine. I see a posting from one of the Roxygen authors saying call graph generation is disabled because of the Rgraphviz dependency, but

How can I generate call graphs for Perl modules and scripts?

孤人 提交于 2019-12-22 18:37:44
问题 I have a bunch of Perl scripts and Perl modules given to me by someone. I have a driver program that tests all these scripts and modules. I want to generate a call graph and see the flow. Is there something available for Perl for doing this? I'd like something like pycallgraph (for python). I am running all this in AIX. 回答1: Simon Cozens tells you how to do it in Profiling Perl on Perl.com. He uses a combination of Devel::DProf and GraphViz. 来源: https://stackoverflow.com/questions/1270477/how

Generating call graph for C code [closed]

二次信任 提交于 2019-12-21 12:19:31
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm writing a tool and I need to generate the callgraph for some C projects. I was able to generate the callgraph of one file using