Are there any tools to visualize the objects being used in a program?

前端 未结 6 1562
闹比i
闹比i 2021-02-07 18:53

I\'m not sure how useful this would be, but I thought it might be neat to visualize the objects being used in my program and which objects are being referenced from where. I\'m

相关标签:
6条回答
  • 2021-02-07 19:23

    There is the Object Graph Visualizer which displays classes and objects in 3D. For now it lacks an API to automate the initialization, however it shouldn't be too difficult to add this functionality. Source code also on Github.

    Edit: There is already work being done in that direction apparently: https://eprints.hsr.ch/491/

    0 讨论(0)
  • 2021-02-07 19:30

    A profiler would allow you to see what objects are created at runtime. This is the output of JProfiler for instance:


    (source: ej-technologies.com)

    0 讨论(0)
  • 2021-02-07 19:35

    For visualising graph structures (including object graphs), there are lots of tools based on GraphViz: http://www.graphviz.org/

    0 讨论(0)
  • 2021-02-07 19:46

    Sun have developed the VisualVM which includes memory and process profiling. It also supports plugins for technology such as OSGi.

    0 讨论(0)
  • 2021-02-07 19:49

    not sure if that is what you are aiming at, but doxygen will do pretty much all of that.

    it will take a heap of compiling code and turn it into cross referenced html, rtf of pdf. completed will calling tree for each function and "referenced by " for each variable

    0 讨论(0)
  • 2021-02-07 19:50

    An interesting use case would be memory analysis and optimization. This is precisely what Eclipse MAT is about. Check it out.

    alt text http://dev.eclipse.org/blogs/memoryanalyzer/files/2008/05/dom_tree.gif

    0 讨论(0)
提交回复
热议问题