fixed Bug 1587 - PDCP logs are always created (even if not requested)
This commit is contained in:
@@ -120,9 +120,6 @@ LteHelper::DoStart (void)
|
||||
m_phyTxStats = CreateObject<PhyTxStatsCalculator> ();
|
||||
m_phyRxStats = CreateObject<PhyRxStatsCalculator> ();
|
||||
m_macStats = CreateObject<MacStatsCalculator> ();
|
||||
m_rlcStats = CreateObject<RadioBearerStatsCalculator> ("RLC");
|
||||
m_pdcpStats = CreateObject<RadioBearerStatsCalculator> ("PDCP");
|
||||
|
||||
Object::DoStart ();
|
||||
|
||||
}
|
||||
@@ -831,6 +828,8 @@ LteHelper::EnableTraces (void)
|
||||
void
|
||||
LteHelper::EnableRlcTraces (void)
|
||||
{
|
||||
NS_ASSERT_MSG (m_rlcStats == 0, "please make sure that LteHelper::EnableRlcTraces is called at most once");
|
||||
m_rlcStats = CreateObject<RadioBearerStatsCalculator> ("RLC");
|
||||
m_radioBearerStatsConnector.EnableRlcStats (m_rlcStats);
|
||||
}
|
||||
|
||||
@@ -1339,6 +1338,8 @@ LteHelper::GetRlcStats (void)
|
||||
void
|
||||
LteHelper::EnablePdcpTraces (void)
|
||||
{
|
||||
NS_ASSERT_MSG (m_pdcpStats == 0, "please make sure that LteHelper::EnablePdcpTraces is called at most once");
|
||||
m_pdcpStats = CreateObject<RadioBearerStatsCalculator> ("PDCP");
|
||||
m_radioBearerStatsConnector.EnablePdcpStats (m_pdcpStats);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user