src/share/vm/services/memSnapshot.hpp

changeset 4400
ecd24264898b
parent 4285
49cbd3e25ba9
child 4959
b80cc96882f7
     1.1 --- a/src/share/vm/services/memSnapshot.hpp	Fri Dec 07 10:55:16 2012 -0800
     1.2 +++ b/src/share/vm/services/memSnapshot.hpp	Tue Jan 08 14:04:25 2013 -0500
     1.3 @@ -355,6 +355,9 @@
     1.4    // the lock to protect this snapshot
     1.5    Monitor*              _lock;
     1.6  
     1.7 +  // the number of instance classes
     1.8 +  int                   _number_of_classes;
     1.9 +
    1.10    NOT_PRODUCT(size_t    _untracked_count;)
    1.11    friend class MemBaseline;
    1.12  
    1.13 @@ -375,8 +378,9 @@
    1.14    // merge a per-thread memory recorder into staging area
    1.15    bool merge(MemRecorder* rec);
    1.16    // promote staged data to snapshot
    1.17 -  bool promote();
    1.18 +  bool promote(int number_of_classes);
    1.19  
    1.20 +  int  number_of_classes() const { return _number_of_classes; }
    1.21  
    1.22    void wait(long timeout) {
    1.23      assert(_lock != NULL, "Just check");

mercurial