add a traced variable in ns-2:
1. Add a TracedInt member in head file in cpp space
2. do whatever you need with the variable in cpp space.
3. ma in ns-2.28/tcl/lib/ns-default.tcl to define the variable in tcl space.
something related to my graduate study
2 Comments:
need to "make clean" and "make" again.
otherwise, segmentation fault may happen
if you want a special format instead of TracedInt, you need to change the corresponding traceVar function. e.g. in tcp.cc
Post a Comment
<< Home