Package com.sun.sgs.profile

Examples of com.sun.sgs.profile.ProfileOperation.report()


        txnScheduler.runTask(
            new TestAbstractKernelRunnable() {
    public void run() {
                    // We expect to see the operation in the profile report
                    op.report();
                    op1.report();
                    op.report();
                }
            }, myOwner);
           
        AssertionError error =
View Full Code Here


                }
        });
        profileCollector.addListener(test, true);

        op.report();
        op1.report();
        assertEquals(1, opAgg.getCount());
        assertEquals(1, op1Agg.getCount());
        op.report();
        assertEquals(2, opAgg.getCount());
       
View Full Code Here

        txnScheduler.runTask(
            new TestAbstractKernelRunnable() {
    public void run() {
                    // We expect to see the operations in the profile report
                    op.report();
                    op1.report();
                    op.report();
                }
            }, myOwner);
           
        AssertionError error =
View Full Code Here

    /** {@inheritDoc} */
    public byte[] getObject(Transaction txn, long oid, boolean forUpdate) {
  byte[] result = dataStore.getObject(txn, oid, forUpdate);
  ProfileOperation op =
                forUpdate ? stats.getObjectForUpdateOp : stats.getObjectOp;
  op.report();
  stats.readBytesCounter.incrementCount(result.length);
  stats.readObjectsCounter.incrementCount();
  stats.readBytesSample.addSample(result.length);
  return result;
    }
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.