Bug 1241 - document how to access trace source as an attribute
document how to access trace source as an attribute
Status: NEW
Product: ns-3
Classification: Unclassified
Component: core
All All
: P5 normal
Assigned To: Peter Barnes
Depends on:
  Show dependency treegraph
Reported: 2011-08-09 15:42 EDT by Tom Henderson
Modified: 2019-11-05 17:00 EST (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2011-08-09 15:42:56 EDT
reminder to document this:
Comment 1 Peter Barnes 2019-11-05 17:00:38 EST
On Tue, May 31, 2011 at 10:16, Ruben Merz <ruben at net.t-labs.tu-berlin.de> wrote:
> If I have the following:
> .AddTraceSource ("WifiMacQueueSizeTrace",
>                 "The current size of the Wifi MAC queue",
>                 MakeTraceSourceAccessor (&WifiMacQueue::m_size))
> Would m_size also be accessible through the attribute system? My current
> understanding is no and so I would typically need to add a .AddAttribute
> field.

yes but you can AddAttribute on the TraceValue itself without
introducing another variable.

Comment 2 Peter Barnes 2019-11-05 17:00:51 EST
Move to core