src/simulator/simulator.h
changeset 3489 b5ef00370c70
parent 3470 21022872009d
child 3515 88e9cee20461
equal deleted inserted replaced
3488:517acaf61a69 3489:b5ef00370c70
    25 #include "event-impl.h"
    25 #include "event-impl.h"
    26 #include "nstime.h"
    26 #include "nstime.h"
    27 #include "scheduler.h"
    27 #include "scheduler.h"
    28 
    28 
    29 #include "ns3/type-traits.h"
    29 #include "ns3/type-traits.h"
       
    30 #include "ns3/deprecated.h"
    30 
    31 
    31 #include <stdint.h>
    32 #include <stdint.h>
    32 #include <string>
    33 #include <string>
    33 
    34 
    34 namespace ns3 {
    35 namespace ns3 {
    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.