0 Replies Latest reply on Aug 14, 2005 10:59 PM by Paul Pelletier

    Memory Monitor Aspect?

    Paul Pelletier Newbie


      I'm wondering if it would be feasible (or if it's a good idea) to create an aspect to monitor the creation and destruction of instances of various classes. The goal would be to get a better idea of how the number of objects varies over time and perhaps determine possible memory leaks.

      I'm thinking of using pointcuts of both new and finalize methods to be able to increment and decrement a counter.

      As anyone done anything similar?
      I would appreciate any thoughts on the subject!