77 * in the previous scheduler will be transfered to the new scheduler |
78 * in the previous scheduler will be transfered to the new scheduler |
78 * before we start to use it. |
79 * before we start to use it. |
79 */ |
80 */ |
80 static void SetScheduler (Ptr<Scheduler> scheduler); |
81 static void SetScheduler (Ptr<Scheduler> scheduler); |
81 |
82 |
82 /** |
83 static void EnableLogTo (char const *filename) NS_DEPRECATED; |
83 * Enable logging to the file identified by filename. If the file |
|
84 * does not exist, it is created. If it exists, it is destroyed and |
|
85 * re-created. Every scheduling event is logged to this file in a |
|
86 * simple text format which can be read back by the event replay |
|
87 * utility. This allows you to record the scheduling behavior of |
|
88 * a simulation, and measure the exact overhead related to |
|
89 * event scheduling with the event replay utility. It is also possible |
|
90 * to compare the performance of every scheduling algorithms on this |
|
91 * specific scheduling load. |
|
92 * This method must be invoked before any call to Simulator::run |
|
93 * @param filename the name of the file to log to |
|
94 */ |
|
95 static void EnableLogTo (char const *filename); |
|
96 |
84 |
97 /** |
85 /** |
98 * Every event scheduled by the Simulator::insertAtDestroy method is |
86 * Every event scheduled by the Simulator::insertAtDestroy method is |
99 * invoked. Then, we ensure that any memory allocated by the |
87 * invoked. Then, we ensure that any memory allocated by the |
100 * Simulator is freed. |
88 * Simulator is freed. |