コード例 #1
0
ファイル: PerfDataBuffer.java プロジェクト: ronshapiro/j86
 /**
  * Get a copy of the remote instrumentation buffer.
  *
  * <p>The data in the remote instrumentation buffer is copied into the local byte buffer.
  *
  * @param buffer the buffer to receive the copy of the remote instrumentation buffer.
  * @throws RemoteException Thrown on any communications errors with the remote system.
  */
 public void sample(ByteBuffer buffer) throws RemoteException {
   assert buffer != null;
   assert rvm != null;
   synchronized (buffer) {
     buffer.clear();
     buffer.put(rvm.getBytes());
   }
 }