Package edu.brown.profilers

Examples of edu.brown.profilers.ProfileMeasurement.start()


   
    public VoltTable[] run(int partition) {
        // -------------------- LOCK BEFORE QUERY --------------------
        ProfileMeasurement pm_before = new ProfileMeasurement("BEFORE");
        LOG.info(this.getTransactionState() + " - Blocking until LOCK_BEFORE is released");
        pm_before.start();
        try {
            // Notify others before we lock
            NOTIFY_BEFORE.release();
            LOCK_BEFORE.acquire();
            LOCK_BEFORE.release();
View Full Code Here


        LOG.info(this.getTransactionState() + " - RESULTS:\n" + results[0]);

        // -------------------- LOCK AFTER QUERY --------------------
        ProfileMeasurement pm_after = new ProfileMeasurement("AFTER");
        LOG.info(this.getTransactionState() + " - Blocking until LOCK_AFTER is released");
        pm_after.start();
        try {
            // Notify others before we lock
            NOTIFY_AFTER.release();
            LOCK_AFTER.acquire();
            LOCK_AFTER.release();
View Full Code Here

        boolean takeLocks = (this.getTransactionState().getRestartCounter() == 0);
       
        // -------------------- LOCK BEFORE QUERY --------------------
        ProfileMeasurement pm_before = new ProfileMeasurement("BEFORE");
        LOG.info(this.getTransactionState() + " - Blocking until LOCK_BEFORE is released");
        pm_before.start();
        try {
            // Notify others before we lock
            NOTIFY_BEFORE.release();
            if (takeLocks) LOCK_BEFORE.acquire();
        } catch (InterruptedException ex) {
View Full Code Here

        final VoltTable updateResults[] = voltExecuteSQL();
       
        // -------------------- LOCK AFTER QUERY --------------------
        ProfileMeasurement pm_after = new ProfileMeasurement("AFTER");
        LOG.info(this.getTransactionState() + " - Blocking until LOCK_AFTER is released");
        pm_after.start();
        try {
            // Notify others before we lock
            NOTIFY_AFTER.release();
            if (takeLocks) LOCK_AFTER.acquire();
        } catch (InterruptedException ex) {
View Full Code Here

        ProfileMeasurement pm = this.computeTime.get(txnName);
        if (pm == null) {
            pm = new ProfileMeasurement(txnName);
            this.computeTime.put(txnName, pm);
        }
        pm.start();
    }
   
    /**
     * Stop recording the compute time for a new txn invocation.
     * Must be called after startComputeTime()
View Full Code Here

                   
                    // Then tell the client to drain
                    ProfileMeasurement pm = new ProfileMeasurement();
                    try {
                        if (debug.val) LOG.debug("Draining connection queue for client " + cmp.getClientId());
                        pm.start();
                        cmp.getClientHandle().drain();
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    } finally {
                        pm.stop();
View Full Code Here

                        }

                        double cost = 0.0d;
                        Throwable error = null;
                        try {
                            profiler.start();
                            if (skip_processing == false) {
                                cost = costmodels[partition].estimateTransactionCost(args.catalogContext, txn_trace);
                            }
                        } catch (Throwable ex) {
                            error = ex;
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.