Package org.javasimon

Examples of org.javasimon.Split.stop()


        Stopwatch stopWatch = SimonManager.getStopwatch("detail.removelastoffheap");
    Split split = stopWatch.start();
    CacheEntry last = lruOffheapQueue.poll();
    if (last == null) {
      logger.warn("no lru from off heap");
      split.stop();
      return null;
    }
   
    usedMemory.addAndGet(-last.size);
    entries.remove(last.key);
View Full Code Here


   
    usedMemory.addAndGet(-last.size);
    entries.remove(last.key);
    slots.add(last);
    logger.debug("added slot of " + last.size + " bytes");
    split.stop();
    return last;
  }
 
  public int heapEntriesCount() {
    return lruQueue.size();
View Full Code Here

          logger.debug("checking expired entries");
          cache.disposeExpired();
        }
      }.start();
    }
    split.stop();
  }
}
View Full Code Here

      cache.disposeHeapOverflow();
      cache.disposeOffHeapOverflow();
      logger.debug("checking expired entries");
      cache.disposeExpired();
    }
    split.stop();
  }
}
View Full Code Here

      logger.debug("checking expired entries");
      cache.disposeExpired();
    } else {
      count++;
    }
    split.stop();
  }
}
View Full Code Here

          logger.debug("checking expired entries");
          cache.disposeExpired();
        }
      }.start();
    }
    split.stop();
  }
 
}
View Full Code Here

      byte[] dest = new byte[entry.size];
      synchronized (entry.buffer) {
        entry.buffer.position(entry.position);
        entry.buffer.get(dest);
      }
      split.stop();
      try {
        Split deserSplit = deserializeMon.start();
        @SuppressWarnings("unused")
        DummyPojo obj = Starter.deserialize(dest);
        deserSplit.stop();
View Full Code Here

      split.stop();
      try {
        Split deserSplit = deserializeMon.start();
        @SuppressWarnings("unused")
        DummyPojo obj = Starter.deserialize(dest);
        deserSplit.stop();
//        System.out.println(obj.getName() + " count=" + count);
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (ClassNotFoundException e) {
View Full Code Here

      byte[] dest = new byte[entry.size];
      synchronized (entry.buffer) {
        entry.buffer.position(entry.position);
        entry.buffer.get(dest);
      }
      split.stop();
      DummyPojo obj = null;
      try {
        Split deserSplit = deserializeMon.start();
        obj = Starter.deserialize(dest);
        deserSplit.stop();
View Full Code Here

      split.stop();
      DummyPojo obj = null;
      try {
        Split deserSplit = deserializeMon.start();
        obj = Starter.deserialize(dest);
        deserSplit.stop();
      } catch (IOException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
      } catch (ClassNotFoundException e1) {
        // TODO Auto-generated catch block
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.