LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2014, 03:52 AM   #1
moreroz
LQ Newbie
 
Registered: Jan 2013
Posts: 28

Rep: Reputation: 0
ns2 code visualizer


I want to know is there any tools which show me a graphical presentation of codes? Better to describe my case I run wpan_demo1.tcl on ns2.35 from thisi directory /home/alex/Downloads/ns-allinone-2.35/ns-2.35/tcl/ex/wpan. As you see by ruuning this scrpt lots of file on the "/home/alex/Downloads/ns-allinone-2.35/ns-2.35/wpan" will run. I want to know is there any tool which depict the relations between this file or in each file what the funstion is and show the relation between funstions?
I search and got information about Doxygen and Grephviz but not sure and do not know how to.

Last edited by moreroz; 04-05-2014 at 03:53 AM.
 
Old 04-05-2014, 05:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
$ ns wpan_demo1.tcl :
1) The nam simulation opens OK. Press the 'Play' button for animation.
2) The files wpan_demo1.nam (2.3MB) and wpan_demo1.tr (1.7MB) are created.
? What more can you want ?

( Doxygen sorts out any documentation written into {source files .c, .cc, etc.}.
Not a visualizer.)

To know "relations between functions" :
I guess you will have to learn c++ and tcl + otcl, and the particular ns2 functions,
so you can read the code to see what's happening.

-
 
1 members found this post helpful.
Old 04-05-2014, 05:55 AM   #3
moreroz
LQ Newbie
 
Registered: Jan 2013
Posts: 28

Original Poster
Rep: Reputation: 0
Thanks,dear knudfl thanks for replying again.
I am looking for tools which visualize the code. I need a tools to visualize in order to make my work faster. But what you told is right but what I am looking for is a code presenter. I think this link ask my question better than my I asked http://stackoverflow.com/questions/517589/tools-to-get-a-pictorial-function-call-graph-of-code based on this I found codeviz and understant. My question is: do you have any experience with those or something like them ? Suppose that you give me 10 file each one 400 line of project If I have one these tools my work become so faster than my self track all line to see what is happening ?

Last edited by moreroz; 04-05-2014 at 06:02 AM.
 
Old 04-05-2014, 08:09 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 .

Sorry, I am not a coder, and cannot come up with any good advices.

The Graphviz image shown here looks promising http://www.graphviz.org/
* http://www.graphviz.org/Documentation.php

Looks even better : Codeviz http://www.csn.ul.ie/~mel/projects/codeviz/
... and there is good documentation for both tools Graphviz / Codeviz, I think.
So why not go ahead and try out both the applications ...

-
 
1 members found this post helpful.
  


Reply

Tags
code, ns2 ns-allinone, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 12:03 PM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM
Need some ns2 code Raijin Linux - Newbie 3 11-15-2011 05:53 PM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM
ns2 code prasad.css@gmail.com Linux - Newbie 1 01-23-2008 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration