utils/print-trace-sources.cc
changeset 1371 bebf690257c9
parent 1368 e75dc1a2a5fb
child 1375 4f45bec005b8
equal deleted inserted replaced
1370:d5339e1c95df 1371:bebf690257c9
    15   Ptr<PointToPointNetDevice> p2p = Create<PointToPointNetDevice> (node);
    15   Ptr<PointToPointNetDevice> p2p = Create<PointToPointNetDevice> (node);
    16   p2p->AddQueue (Queue::CreateDefault ());
    16   p2p->AddQueue (Queue::CreateDefault ());
    17   Ptr<CsmaCdNetDevice> csma = Create<CsmaCdNetDevice> (node);
    17   Ptr<CsmaCdNetDevice> csma = Create<CsmaCdNetDevice> (node);
    18   csma->AddQueue (Queue::CreateDefault ());
    18   csma->AddQueue (Queue::CreateDefault ());
    19 
    19 
    20   NodeList::GetTraceResolver ()->PrintAvailable ("", TraceContext (), std::cout);
    20   TraceResolver::SourceCollection collection;
       
    21   NodeList::GetTraceResolver ()->CollectSources ("", TraceContext (), &collection);
       
    22   collection.Print (std::cout);
    21 
    23 
    22   return 0;
    24   return 0;
    23 }
    25 }