call-graph

How can I see a visualization of a dynamic call graph for a .NET program?

有些话、适合烂在心里 提交于 2019-11-29 15:00:15
问题 Is there a tool out there for visualizing dynamic call graphs? I saw a reference to one for Visual Basic 6 but I'd like one for .NET. If I had to build a visualizer myself should I bother with the .NET profiling API or should I do something with Mono.Cecil ? I started writing a CLI runtime with Cecil, but I guess it'd be easier if I just injected call-graph recording calls in the assemblies, although since I don't know the execution route ahead of time and would have to instrument everything.

Application to generate Java class hierarchy diagram [closed]

瘦欲@ 提交于 2019-11-28 21:58:09
Looking for a tool that: Produces a visually pleasing (not garish), orthogonally structured graph hierarchy Outputs high-quality PNG images (300dpi+) Visually differentiates classes, abstract classes, interfaces, and enumerated types (preferably by colour) Interactive user interface Allows pruning of packages and/or individual classes from the diagram Seeds (e.g., File » Open ) using a set of: Directories JAR files Individual source files Individual compiled classes Performs a fully automatic analysis of class dependencies Searches classpath to resolve as many unmet dependencies as possible

Make GDB print control flow of functions as they are called

a 夏天 提交于 2019-11-28 19:32:12
How do I make gdb print functions of interest as they are called, indented according to how deep in the stack they are? I want to be able to say something like (made up): (gdb) trace Foo* Bar* printf And have gdb print all functions which begin with Foo or Bar, as they are called. Kind of like gnu cflow, except using the debugging symbols and only printing functions which actually get called, not all possible call flows. Tools which won't help include cachegrind, callgrind and oprofile, which order the results by which functions were called most often. I need the order of calling preserved.

Can clang generate a call graph for an Xcode project (in Objective-C?

社会主义新天地 提交于 2019-11-28 17:53:12
问题 I found this example that looks like it outputs what I want for C++. How can it be done for the Objective-C code in an Xcode project? I see mentions of Doxygen being able to create a call graph, but I can't find an example. (I want to get to know clang better, but it's hard to get started...) 回答1: Absolutely. There are a couple of tricks that you need to understand, but it's not too bad. First, you need a compatible version of opt , since it doesn't come with the LLVM Apple ships. I got mine

Are there any static Call-Graph and/or Control-Flow-Graph API for JavaScript? [closed]

一个人想着一个人 提交于 2019-11-28 15:51:37
问题 Are there any Call-Graph and/or Control-Flow-Graph generators for JavaScript? Call Graph - http://en.wikipedia.org/wiki/Call_graph Control Flow Graph - http://en.wikipedia.org/wiki/Control_flow_graph EDIT: I am looking specifically for a static tool that let me access the graph using some API/code 回答1: To do this, you need: parsing, name resolution (handling scoping) type analysis (while JavaScript is arguably "dynamically typed", there are all kinds of typed constants including function

Build a Call graph in python including modules and functions?

会有一股神秘感。 提交于 2019-11-28 14:36:17
问题 I have a bunch of scripts to perform a task. And I really need to know the call graph of the project because it is very confusing. I am not able to execute the code because it needs extra HW and SW to do so. However, I need to understand the logic behind it. So, I need to know if there is a tool (which do not require any python file execution) that can build a call graph using the modules instead of the trace or python parser. I have such tools for C but not for python. Thank you. 回答1: The

PHP call graph utility? [closed]

落花浮王杯 提交于 2019-11-28 03:59:38
I'm looking for a utility similar to gprof that will generate a call graph for PHP code. I'd prefer something that can produce graphical output, or at least text output that can be interpreted by GraphViz or similar, but I'll settle for plain text output. Does anyone know of any tool that can do this? Bjarke Freund-Hansen I would definitely try Doxygen . It has support for PHP, and the call graphs and caller graphs it creates have been very useful in exploring "foreign code" for me previously. Not sure there exists anything that can analyse source-code written in PHP to generate that... But

How to generate call-graphs for given javascript? [closed]

妖精的绣舞 提交于 2019-11-27 19:00:55
I have seen " https://stackoverflow.com/questions/1385335/how-to-generate-function-call-graphs-for-javascript ", and tried it. It works well, if you want to get an abstract syntax tree. Unfortunately Closure Compiler only seems to offer --print_tree , --print_ast and --print_pass_graph . None of them are useful for me. I want to see a chart of which function calls which other functions. code2flow does exactly this. Full disclosure, I started this project To run $ code2flow source1.js source2.js -o out.gv Then, open out.gv with graphviz Edit : For now, this project is unmaintained. I would

C# Call Graph Generation Tool

北战南征 提交于 2019-11-27 18:32:12
I just got a heaping pile of (mostly undocumented) C# code and I'd like to visualize it's structure before I dive in and start refactoring. I've done this in the past (in other languages) with tools that generate call graphs. Can you recommend a good tool for facilitating the discovery of structure in C#? UPDATE In addition to the tools mentioned here I've seen (through the tubes) people say that .NET Reflector and CLR Profiler have this functionality. Any experience with these? NDepend is pretty good at this. Additionally Visual Studio 2008 Team System has a bunch of features that allow you

How to generate a Java call graph

不打扰是莪最后的温柔 提交于 2019-11-27 13:52:17
问题 I'd like to analyze and understand a certain Java app and I think a call graph would be very useful. How do I generate one? I'm using Eclipse. 回答1: Getting callstack 1) If you can debug the application simply put a breakpoint (double click over the left margin of the code) and wait it to stop. Go to Debug Perspective if you're not there, and open the Call stack View/Panel. It has the call stack :) 2) If you want to print this stack trace somewhere use an Exception: Exception aux = new