| Construct a CallerTracker which discriminates between contexts based only
on the stack frame the specified number of frames above the frame which invokes
#isNew().
A typical use would be to track callers of a particular method foo(). In the
class foo, define a static member which has a ShallowTracker(1) and then
modify the foo() method to emit a log message IFF tracker.isNew() is true.
|